Nesting Tags
HTML tags should be "nested" in
a proper order, meaning that the tag opened most recently is always
the next tag to close. In the following example, the HTML code is
nested correctly, and we've drawn lines to connect opening and closing
tags:
The following HTML code sample contains two nesting errors. Can
you identify them?
<body>
<center><i><h3>This text will be a centered,
italicized heading (size 3)
</i></h3>
<b>This text will be centered and boldfaced</b>
</body>
</center>
|