Building a Homepage by Hand
A homepage can start as two files in one folder. This exercise recreates that setup using the structure of an HTML 4.01 page.
Save this as index.html in a new folder:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My Home Page</title>
</head>
<body>
<h1>Welcome to My Site</h1>
<p>This is where I keep notes about learning the web.</p>
<p><a href="about.html">About this site</a></p>
</body>
</html>
Copy the file to about.html, change its title and heading, and replace the link with one back to index.html. Open the homepage in a browser and follow both links. The title in the browser tab comes from title; the visible heading comes from h1. Change them independently and reload to see the difference.