|
|
|
Let's start with the minimum HTML 4.01 document, this is just about the simplest document you could create. Just fire up Wordpad (or TeachText) and type the part in red.
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">Title of the Page</title>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>
<body>
<p>This message will be printed on the screen.
</body>
</html>
That's all there is to the minimum HTML 4.01 document. Here is what the tags do:
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> ... </html><HTML>
tags.<head> ... </head><title> ... </title><body> ... </body><p>
</p> tag.And here is the output of the document:
This message will be printed on the screen.
You've just written a complete functional HTML document. Now that you know the basic structure of an HTML document, we can look at the specific elements that are available.
Previous Chapter | Home |
Up | Next Chapter
![]()