[thelist] Coding standards.... [headers]

Austin Harris austin at dotmail.co.uk
Mon Dec 11 05:03:03 CST 2006


I always thought that headers should flow correctly ie: h1 , h2, h3 etc and not h1, h3, h2.
You can go back up ie: h1, h2 , h3, h4, h2, h3 tc

<http://www.w3.org/TR/WCAG10-HTML-TECHS/#document-headers>
Appears to back me up on this.

It can in my experience be nearly impossible to achieve this in the "real world" though...

Also I've never needed to use more than one h1 tag in a page.

Austin

Julian Rickards wrote:
> My position is that, in the same way that you can't have multiple <title>
> tags on a page to represent its multiple purposes, you shouldn't have
> multiple <h1> tags.

Are you saying that h1 is a reinstatement of the title? ...But somehow 
not superfluous? I'm playing a bit of the devil's advocate here because 
that's by and large how I use h1s. But I've also been known to have

<title>[site name] - [page name]</title>
...
<div id=header>
   <h1>[site name]</h1>
   <h2>[section name]</h2>
</div>
...
   <h1>[page name]</h1>...

Joel D Canfield wrote:
 >> it is fine to use H1, H3, H2 if that's how your document flows.
 >
 > how would a document flow like that, semantically? how would you get
 > to the third most important point before the second most important
 > point?

'Headers' are not 'points'. Someone earlier made a joking reference to 
the use of h3 to make text bold. The fact that HTML has (often very 
confusing - and rightfully so) distinctions like em, strong, ul, ol, h# 
etc. are to help it accommodate all the various aspects of document 
writing from human culture, even prior to the w3c.

I feel generally there is too much of a feeling that the form of writing 
that must/can be used on the web must be sensitive to the way the DOM is 
constructed, to logical XML trees etc... And this is spitting in the 
face of the fact that SGML and DHTML have come so far to accommodate 
writing as an inherently complex thing.

1) No matter of intuition as to web standards and technologies will 
teach you good English. I think vice-versa would be closer to the truth, 
but still a fundamentally over-simplistic concept.

2) There is no 'tree' of header elements. The DOM can be perceived as a 
tree, but p objects are not 'contained' within their over-arching h#, 
nor are lower h#s contained within the next lowest h# above.

Regards,
Barney
-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 




More information about the thelist mailing list