Jump to content

Best way to maintain navigation menu


divineiniquity
 Share

Recommended Posts

Hi, I was wondering if there is a way to (in general) link to html code form another file, the same way you can with a CSS stylesheet. What I want to do is be able to create specific HTML code for the navigation menu for my site and then simply link to that piece of code in every page I have; this way I won't have to edit the navigation menu on each individual web page. Is there any way o achieve this WITHOUT using frames? (they look ugly and annoying).Thanks.

Link to comment
Share on other sites

this is very commonly done in php using server side includes, which will allow you to load a single file into each of your pages. for example; you could have one php file for your main site menu, so that if you need to change a link in the menu you only need edit that one file. i explained this in more depth in this thread also read the w3schools tutorial on php includes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...