|
Posted by John Salerno on 02/02/06 08:01
Don't shoot me for asking, please! :)
I was reading about the aims for XHTML 2.0 and I noticed that instead of
having h1-h6 elements, they will use <section> and <h> elements to
better structure the content. But I was wondering, if you use this
method, how would it be possible to style nested <h> elements within a
section? Example from an XHTML 2 document:
<body>
<h>Events</h>
<section>
<h>Introduction</h>
<p>....</p>
<h>Specifying events</h>
<p>...</p>
<section>
<h>Attaching events to the handler</h>
<p>...</p>
</section>
<section>
<h>Attaching events to the listener</h>
<p>...</p>
</section>
<section>
<h>Specifying the binding elsewhere</h>
<p>...</p>
</section>
</section>
</body>
Will all of the <h> elements look the same? Or does their appearance
depend on how far inside a section they are? I doubt the latter. But if
CSS is used to style them, how do you distinguish between the different
ones if they are all <h>? It doesn't seem convenient to have to give
them all ids or classes.
Navigation:
[Reply to this message]
|