BillyRayPreachersSon
Programmer
I've been reading the section on section headings from the Web Contect Accessibility Guidelines 1.0 (at and have a query about heading order.
I'll give a few examples for a fictional company, "The XYZ Company Limited", with a page about "ACME Widgets". Let's assume that there is always a navigation section before the main content, and the company want their name appearing near the top of the page... there are several different ways the markup could be achieved that I can think of. However, I'm not entirely sure which method is best.
For example, should the H1 element be used to denote the company name (XYZ Company), or the details of the bulk of the page content (ACME Widgets)? Or should it be a combination of both of these? Or does it not really matter, as long as the markup is semantically correct?
Here are some ways I can see immediately. I'm not entirely sure which method is "more right", or if any are definately wrong / not semantically correct.
I'm sure there are other ways that I've not thought of, as well.
Can anyone shed any light on these methods, or others? I know that there may not be one "right" answer... I guess I'm just looking to air my thoughts and see what the discussion brings.
Thanks!
Dan
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
I'll give a few examples for a fictional company, "The XYZ Company Limited", with a page about "ACME Widgets". Let's assume that there is always a navigation section before the main content, and the company want their name appearing near the top of the page... there are several different ways the markup could be achieved that I can think of. However, I'm not entirely sure which method is best.
For example, should the H1 element be used to denote the company name (XYZ Company), or the details of the bulk of the page content (ACME Widgets)? Or should it be a combination of both of these? Or does it not really matter, as long as the markup is semantically correct?
Here are some ways I can see immediately. I'm not entirely sure which method is "more right", or if any are definately wrong / not semantically correct.
Code:
<h1>The XYZ Company Limited</h1>
...
<h2>Navigation</h2>
...
<h2>ACME widgets</h2>
<p>Some content here</p>
Code:
<h1>The XYZ Company Limited</h1>
<h2>ACME widgets</h2>
...
<h3>Navigation</h3>
...
<h3>Content</h3>
<p>Some content here</p>
Code:
<h1>ACME widgets - The XYZ Company Limited</h1>
...
<h2>Navigation</h2>
...
<h2>Content</h2>
<p>Some content here</p>
I'm sure there are other ways that I've not thought of, as well.
Can anyone shed any light on these methods, or others? I know that there may not be one "right" answer... I guess I'm just looking to air my thoughts and see what the discussion brings.
Thanks!
Dan
[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]