The 5-minute HTML course

by Eric Lee

To create an HTML document from scratch, simply copy and paste the following code (which appears with this background.)

Change only the bits which appear in red text.

The document header

Copy and paste these few lines into the top of your document:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


Then create the header section, as follows:

<head>
<title>Put here a good descriptive title</title>
<meta name="description" content="Put a descriptive sentence here about your page - for search engines." />
</head>

The document body

The second half of the document consists of something like this:

<body>
<h1>This is a header</h1>
<p>This is the text of a paragraph.</p>
</body>
</html>

That's it -- congratulations! You are now a webmaster.

The advanced course

There are a few more things you probably want to know about. Here goes:

Already thinking of a new career, right?

There's lots more to learn, and here are some good places to begin:

Finally . . .

If your site checks out as valid HTML, you're entitled to add this logo to it:

Valid XHTML 1.0!

And if you've used Cascading Style Sheets, as I've done here, you can add this logo if you've validated successfully there too:

Valid CSS!

And finally, if you want to support free software (and piss off Microsoft), add a logo telling the world that you've built your site using Notetab:

Built with free software!