HTML and CSS Reference
In-Depth Information
<p class="test2">I am <span>only child so I am green</span>.</p>
<p class="test2">I have <span>two</span> <b>children</b> so no green
here.</p>
<p class="test3">I have a single <em>em so I am red</em>.</p>
<p class="test3">I have <em>two</em> <em>em</em> tags so neither is red.</p>
<p>Empty element below.</p>
<p></p>
<p>Empty element above.</p>
</body>
</html>
O NLINE http://htmlref.com/ch4/treeselectors.html
F IGURE 4-11 CSS2 and CSS3 tree selectors example
 
Search WWH ::




Custom Search