HTML and CSS Reference
In-Depth Information
The important consequence is that <em> and <strong> are always
descendants of a block-level element like <p> . Block-level elements
should never be children of inline elements, but inline elements can be
children of other inline elements.
<p>A paragraph with
<em>emphasis</em>
</p>
<em>
<p>A paragraph with emphasis</p>
</em>
<p>A paragraph with
<em>
<strong>strong</strong>
emphasis
</em>
</p>
There are several other inline elements, but we don't have room to go
into them. The final section of this appendix lists resources where you
can look them up yourself; in the meantime, remember the rule dis-
cussed here.
Neutral elements: <div> and <span>
<div class="person">
<p class="full_name">
<span class="first_name">
Rob
</span>
<span class="surname">
Crowther
</span>
</p>
<p class="hometown">
London
</p>
</div>
Search WWH ::




Custom Search