I'm planning to create a website with many webpages which are shared by a navigational menu.
For example: www.apple.com
Do I have to create separate html files with the same menu code or is there an easier way to accomplish the same task? (using javascript, php, etc)
librarythat, to my understanding works like this: You can store html in this library and place it in multiple documents with some specific code that it gives you. The places where you would put these codes will be filled with the library content stored in the library ( in your final html files ). This would probably work for small websites. – Joonas Oct 31 '12 at 7:44<?php include 'header.php'; ?>. As far as javascript goes, in jquery you can use load to 'include' content from external files really easily api.jquery.com/load ( not that I'd recommend it for something as important as menu since it would be totally lost if js would be disabled ). – Joonas Oct 31 '12 at 7:54