Donny Bahama Posted January 29, 2018 Share Posted January 29, 2018 It occurs to me that it might be a good idea to have the pages on my site be modular... Is there some way I can just include (like I would in php) a file for my banner, navigation, footer, etc. I'm currently going through and editing every file on my site - all because I decided to make a change to my nav menu. If I have to go with php pages instead, I can do that, but I thought I'd check first. If there is a way to do this, is it well-supported by all browsers (even old ones/IE/etc.)? If I have to go with php pages, are there SEO issues/complications to doing so? I would assume they would only look at the rendered pages, right? Link to comment Share on other sites More sharing options...
Donny Bahama Posted January 29, 2018 Author Share Posted January 29, 2018 (edited) I found the answer here: https://www.w3schools.com/howto/howto_html_include.asp Only it doesn't work. Edited January 29, 2018 by Donny Bahama Link to comment Share on other sites More sharing options...
Ingolme Posted January 29, 2018 Share Posted January 29, 2018 Did you use the code exactly as it is presented on the W3Schools website? There are a couple of issues you may encounter: If you're running the HTML file from your computer's file system, browser security restrictions will prevent the other files from loading. Files from other websites are prevented from loading by browsers unless the other website specifically allows your domain name to use the files. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now