Dynamic Flash

Confessions of a serial code abuser
  • rss
  • Home
  • MTASC
  • Archives
  • About me
  • Goodies
    • Base64 encoder/decoder class
  • My Bookshelf
  • My Talks

Good semantics and the h1 tag

Sunday, 20 February 2005

Whilst flicking through my favourite blogs over a nice glass of red wine, I came across a post by Andy Budd discussing appropriate use of headings in semantic mark-up. Since Andy has highlighted the issue far more eloquently than I could, I’m not even going to try explaining the whole issue here – I’d suggest you read his article before carrying on.

The basic conclusion of Andy’s post is that slapping your site title in an h1 tag is not necessarily something you should be doing if you’re aiming to give your mark-up maximum meaning. We see a lot of sites these days that are striving for semantic mark-up but “abuse” the h1 tag, using some crazy CSS like the following to display a header image instead of the actual heading.

[css] h1 { text-indent: -1000em; width: 800px; height: 60px; background: url(header.gif) no-repeat; }[/css]

This gives the heading text a huge negative indent to push it off the page whilst still keeping it accessible for screen readers, and places a background image in its place.

Andy argues that the h1 tag should be used…

…to describe the structure and content of the current page, not to describe the structure of the site or how this particular page fits into a larger hierarchy.

To be honest, I’m not entirely sure where I stand on this issue. The number one question that springs to mind is which tag we should use for the site title if the h1 tag is inappropriate? Surely it has to be somewhere in the mark-up (unless the title of the site isn’t important?) but the only other real alternative is the <title> tag, and that’s generally a combination of the site title and the page title. Is that good enough? If it is, does the fact that those using screen readers have to make an educated guess at the title of the site is that acceptable? If it’s not good enough, what are we left with?

Categories
General

« Delegate class refined Moving servers »

One response

I think we should use tag for good SEO,

victor | Wednesday, 02 January 2008 | 4:10 pm

I think we should use tag for good SEO, H1 tag should be use for other things like articles titles.

About Dynamic Flash

Steve Webster is a Senior Web Developer for Yahoo! in London, UK.

He is more than a little concerned that he defines himself in terms of his career, and that he talks about himself in the third person.

Find out more

del.icio.us-ed

  • samuel's squawk at master - GitHub
  • Pixelwave - A native 2D iPhone framework, based on the Flash API
  • Pixelwave - A native 2D iPhone framework, based on the Flash API
  • mnot’s Weblog: Are Resource Packages a Good Idea?
  • Download details: IE App Compat VHD
  • ZSync
  • jQuery source viewer
  • Penetration testing tools - Stack Overflow
  • Logrep
  • DOM Window (jquery.DOMWindow.js)

Recent Posts

  • Moving on
  • iPhone / iPod Touch Development Resources
  • Upgrading your app to AIR 1.5
  • Motivate yourself by doing it in public
  • The trouble with Flash and REST
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox