HTML element: Difference between revisions

Content deleted Content added
mNo edit summary
Line 5:
=="Nesting"==
 
Most but not all HTML elements can be "nested": <p><em>You</em>rock!</p> has an EM elemenentelement 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.
Line 12:
 
'''<font color="green">Right</font>''': &lt;p>&lt;font face="Tahoma">Lucy kissed &lt;em>Jimmy&lt;/em>&lt;/font>&lt;/p>
 
 
 
==Header tags==