Reputation: 373
How do I create a webpage with a header, content, and a footer. I am using TextEdit on my Mac and saving the file with a .HTML extension.
Upvotes: 1
Views: 5610
Reputation: 22310
If your web server is Apache (I would guess on Mac), you can use server-side includes:
<html>
.....
<body>
<!--#include virtual="myheader.html" -->
YOUR CONTENT GOES HERE
<!--#include virtual="myfooter.html" -->
</body>
Upvotes: 0
Reputation: 34347
<html>
<head><title>my title</title></head>
<h1>My Header</h1>
<p>The quick brown fox jumps over the lazy dog.</p>
<h4>My footer</h4>
</html>
my title
The quick brown fox jumps over the lazy dog.
My footer
Upvotes: 0
Reputation: 48088
create an html file paste this frames :
<html>
<frameset rows="25%,50%,25%">
<frame src="header.htm">
<frame src="content.htm">
<frame src="footer.htm">
</frameset>
</html>
and then create your header, content and footer files in same directory.
Upvotes: 0
Reputation: 31903
You can go through the 3+3 tutorials for HTML and CSS on HTML Dog.
Upvotes: 3
Reputation: 18821
I assume you have some ability to run a scripting language on your host, so just write a header and footer file, and include those in your content page with your dynamic language of choice.
Upvotes: 0