8 January 2007

how many level 1 heading (<h1>) tag?

So someone posted on the textpattern forum how many times can we use a level 1 heading tag? I didn’t even know that people had problems… if you are using semantics, and it makes sense semantically, use as many as you would like.

I have never really given this topic much thought, as I always think each person defines what they think is semantically correct.

Semantics is a touchy subject, and what it really comes down to is one’s personal feeling on what is semantically correct. Sure there are things that society agrees upon, but it really comes down to the individual.

The H1 tag (or any header tag), is a great tag, and if you are lucky enough to see how a blind user interacts with web pages using them, then you will see how useful they are. I am sure no one can argue that they are useful, but to see this makes you want to use them correctly.

A blind user (from what i have seen) depends on them, and it tells the hierarchy of a page, just as if someone visually looka on a page they can quickly scan page and see what is highest to lowest priority. if you keep this thought in your head, you will make more informed decisions.

The abuse of H1 tags, comes from the fact (i think it is a fact anyway), is that search engine, index them better. So hence the H1 spamming… still the W3C really doesn’t give clear guidelines.

In my site …

I only have the name of the site on the home page in a H1 tag, that is the only time I deem it important… and on my home page the articles themselves I deem as important. so they too get H1 tags…

… then on a main section page I deem that section the most important, so it gets the H1 and articles now get the H2 tag…

… finally on the article page, I deem the article itself as most important, so the article gets the H1 tag

Many sites use the name of the site as the H1 tag throughout, and it can be argued very reliably that it is… but I feel the article itself is what counts, content first, anyone can tell which site they are on, it’s the articles that are variable, and hence should be treated as the most important thing.

Anyway to answer the original question, use as many times as you see fit, and think of them as a “sitemap” to the page .. and you will make more informed decisions.

 

comment

what they saidwho said it

I like the part about visualizing as a sitemap of the page. Never really thought about it that way, but that helps. Thanks.

2007-01-08
arthur


note: you can only submit after you hit preview


nuff-respec is a weblog written by daniel bulli a senior web programmer in boston, ma.
more >

contact | resume | profile

recently :::

diversions :::

Using Flash And Staying Standards Compliant
Anyone who has ever worked with Flash on the web has likely come across the fact that embedding flash into a web page is usually no walk in the park...
A Design is Finished when...
This is probably the hardest part of designing for me.... 23 Pro designers weigh in with their opinions ...
JungleCrazy.com
Find all the Amazon.com products that are discounted by at least 70%
IETester
IETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE8 beta 1, IE7 IE 6 and IE5.5 on Vista and XP, as well as the installed IE in the same process.
you still want more »