HTML element: Difference between revisions

Content deleted Content added
Goplat (talk | contribs)
m "Nesting": terminate em with /em
Line 5:
=="Nesting"==
 
Most but not all HTML elements can be "nested": <p><em>You</em>rock!</p> has an EM element nested inside a P element. This can become more complex, for example <h1>Children that <em>do <font color="red">not</font> clean up</em> their rooms</h1>. Nesting may be arbitrarily deep.
 
It is important to remember that a so-called 'block-level' element cannot be nested inside another block-level element, and that tags must be closed in the reverse order that they've been opened.