Lesson 1: Basic HTML Tags
(Minimal HTML)

The <!DOCTYPE> tag indicates to the Web server what type of document it's parsing. The <!DOCTYPE> tag below supports both HTML and XHTML. It should be placed at the top of all of your documents.

It is interesting to note that the <!DOCTYPE> tag, which is the first tag at the top of an XHTML document, is defined as uppercase "DOCTYPE", yet the rules of XHTML state that all tags and attributes should be lowercase. There is no good explanation for this deviation from the standard.

NOTE: This tag is required for an XHTML document to validate.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Welcome to HTML</title>
</head>

<body>
Welcome to the world of HTML!
</body>
</html>