navyfalcon Posted May 10, 2020 Share Posted May 10, 2020 External HTML how to add a header to all html pages 1. put this in your page <script src="https://www.w3schools.com/lib/w3.js"></script> 2. then where ever you want your html code, from the separate file, to be included to your page <div w3-iinclude-html="header.html"></div> template <! doctype html> <html> <head> <meta http-equiv="content-type.... <meta http-equiv="content-language.... <meta name=.... <title>.... <llink rel="stylesheet.... <style type=".... </style> <script src="https://www.w3schools.com/lib/w3.js"></script> </head> <body background=.... <dl> <dt><b><a name=".... <div w3-include-html="header.html"></div> <script>w3.includeHTML();</script> </body> </html> unable to get this to work any suggestions thank you falcon Link to comment Share on other sites More sharing options...
dsonesuk Posted May 10, 2020 Share Posted May 10, 2020 As mentioned in other duplicate post if not running through a localserver it won't work! Also you have stutter problem with code you supplied '<llink' and '<div w3-iinclude-html' Link to comment Share on other sites More sharing options...
Sherin Posted May 19, 2020 Share Posted May 19, 2020 in your code you have <llink> write between <head></head> but actually write <link href="" rel="stylesheet"> so may be this is help for you. 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