You are here: A question about XHTML 2.0 « HTML « IT news, forums, messages
A question about XHTML 2.0

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация