Is there any way to make an area of a webpage reference another HTML file? For instance, if I have a sidebar that shows up on every page of my site. Eventually, information on it is going to get changed. Instead of having to go to every page to change it, is there a way to make that area of the page another HTML file entirely, and then just reference it, so I only have to edit it once for it to affect the whole site? Thanks!
Share
<!--#include file="menu.html" -->is a server side include that will tell the web server you’re using to replace everything between<!--and-->with the contents of the named file.The example I gave assumes menu.html is in the same directory. If it isn’t, you’ll need to adjust your path accordingly.