Lesson 1: Basic HTML Tags
(Tag Etiquette)

Never close tags in an overlapping fashion. Improper nesting of opening and closing tags could cause the browser to display your page incorrectly.

Again, in XHTML it is a requirement to close all tags in the correct order.

<!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 bgcolor="#bdbdbd" text="#000000">
<p>
<center>
<h2>
Welcome to the world of HTML!
</body>
</p>
</center>
</h2>
</html>