divineiniquity Posted September 26, 2007 Share Posted September 26, 2007 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 More sharing options...
ste Posted September 26, 2007 Share Posted September 26, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.