Document-wide tags

HTML, HEAD, BODY

Each HTML document is contained within the <HTML> tag. If you leave it out, your document will probably work fine today, but someday it might not.

Each HTML document also includes a header section indicated by the <HEAD> tag which contains things like title and keywords. It should always be present and at least contain the <TITLE> with the document title.

Everything left will be part of the document body, enclosed by the <BODY> tag.

You should put a document type declaration at the top of your HTML document so that the browser will know what version of HTML you are using. If you are using HTML 3.2, it will always look like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

The minimal HTML 3.2 document:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD> <TITLE> Minimal </TITLE> </HEAD>
<BODY>
</BODY> </HTML>

Next Slide