Anatomy of an HTML page

Web pages are written in HTML format, which is a "plain text" file that uses "markup tags" to control the appearance of the displayed text. Tags come in pairs that are nested, and define sections, paragraphs, lists, in-line enhancements, etc. The whole page , for instance, is bracketed by <html> ... </html>

Author will be very useful if I print the source of your page, so I can give you credit!
"Charset" is useful to specify encoding if you use any accented characters, to avoid misunderstandings. (The other main option is ISO-8859-1, for Western European languages.)

<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello Page</title>
<meta name="author" content="Lin Jensen">
<meta charset="UTF-8">
</head>
<body>
<h1>
Hello
World!
</h1>
How are you?
How's the weather in <em>Lennoxville?</em>
<p>
This is a paragraph.
blah, blah blah, blah blah, blah blah, blah blah, blah blah, blah
blah, blah <strong>blah, blah</strong> blah, blah
</p>
</body>
</html>

This source looks like:

Hello World!

How are you? How's the weather in Lennoxville?

This is a paragraph. blah, blah blah, blah blah, blah blah, blah blah, blah blah, blah blah, blah blah, blah blah, blah


Now see Some Useful HTML Tags
or
Back to Contents
Home page of Lin Jensen