- Joined
- May 12, 2020
- Messages
- 1
- Reaction score
- 0
external html
how to add a header to. all html pages
1. put this in your page
<script src="https://www.3schools.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-include-html="header.html"><//div>
template (my example)
this did not work for me
any suggestions
thank you for your time and help
falcon
how to add a header to. all html pages
1. put this in your page
<script src="https://www.3schools.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-include-html="header.html"><//div>
template (my example)
Code:
<!doctype html>
<head>
<meta html-equiv="content-type....
<meta html-equiv="content-language....
<meta name=....
<title>....
<link rel="stylessheet....
<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>
this did not work for me
any suggestions
thank you for your time and help
falcon