What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

External HTML

Falccn

New member
Stackoverflow.com
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, the separate file,
to be included to your page:
<div w3-include-html="header.html"></div>

template:
[ code]
<!doctype>
<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>
[/code]

I tried this "template (or the web site)" and the external html
did not work
what did I do wrong or forget
is there a better way
THANK YOU
falcon
 
Stackoverflow.com
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, the separate file,
to be included to your page:
<div w3-include-html="header.html"></div>

template:
[ code]
<!doctype>
<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>
[/code]

I tried this "template (or the web site)" and the external html
did not work
what did I do wrong or forget
is there a better way
THANK YOU
falcon
 
Back
Top