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 | twitter

recently :::

diversions :::

45+ Amazing Insect Shots in Photography
Insects are one of the most fascinating creatures on earth. There are more than 800, 000 species of insects in the world.
Grayscale color | Stroep Blog
This is how I create a grayscale color in actionscript 3.
Google Flash API
This is great ... google has made this easy ... stay tuned to see what i am working on ...
25 Free Mac Apps That Will Boost Your Productivity
There are many applications that can help you work faster and efficiently. Though, not many applications come cheap.
you still want more »