Answers Search Help
Boston University home page
HTML: Introduction
 
 
    Components
 
 
 
 
 
 
    Syntax
 
 
 
 
 
    Essential Tags
 
 
 
 
 
 
 
 
    HTML Headings
 
 
    Text
 
 
 
 
    Layout
 
 
 
 
 
 
 
    Links & Images
 
 
 
 
    Publishing
 
 
    Also See
 
 

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>

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007