|
Posted by Jukka K. Korpela on 02/02/06 08:15
John Salerno <johnjsal@NOSPAMgmail.com> wrote:
> 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.
Yes. I hope you noted that XHTML 2.0 is just a working draft (and not
even a complete draft), and it will probably take years before it
becomes a specification and a recommendation (if that ever happens).
> But I was wondering, if
> you use this method, how would it be possible to style nested <h>
> elements within a section?
You would use contextual selectors in CSS. Even in existing CSS, you
could use e.g.
h { font-size: 150%; }
section h { font-size: 130%; }
section section h { font-size: 110%; }
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
[Back to original message]
|