954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

[HTML] Defining constant elements in different pages

Hi There;
I try to design a web site. There are many pages in my web site and I linked them altogether. But there are constant buttons must be existed in different pages. I mean there are buttons namely, "Home" , "About" .. vs in different HTML pages . I do not write to codes of constant buttons in every HTML pages. How can I handle this?

Thanks in advance.

varoluscu_prens
Light Poster
25 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

you gonna have to use some server side technology to do that. for instance in php you define a header.php file, footer.php file and put common elements there. Then on content pages like aboutus.php you simply include header.php and footer.php in proper places.. have a look on w3schools for php include, its not difficult

ckchaudhary
Newbie Poster
23 posts since Oct 2011
Reputation Points: 12
Solved Threads: 5
 
you gonna have to use some server side technology to do that. for instance in php you define a header.php file, footer.php file and put common elements there. Then on content pages like aboutus.php you simply include header.php and footer.php in proper places.. have a look on w3schools for php include, its not difficult

I couldn't see it in w3schools , can you please give link?

varoluscu_prens
Light Poster
25 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 
ckchaudhary
Newbie Poster
23 posts since Oct 2011
Reputation Points: 12
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: