Looking through the XHTML 2.0 spec, I found something lovely

admin

Administrator
Staff member
<h> is the header element. I can already hear the cries of people who like the old <h1> - <h6>, but already I'm looking forward to having just <h>.

Why? Several reasons.

You could have, for example, more than 6 levels of headings. Observe:


<h class="first">
<h class="second">
<h class="third">
<h class="fourth"
<h class="fifth">
<h class="sixth">
<h class="seventh">
<h class="eighth">
<h class="ninth">
<h class="tenth">


Ten levels of headings!

Actually, a numbered level attribute would be cool, but that's beside the point. But wait! We don't have to worry about numbering! How about <h class="question"> for a Q&A or FAQ? Or maybe <h class="title">, <h class="subtitle">, <h class="SectionTitle">? In short, <h> is any header you want it to be. :)
 
Back
Top