The HTML Semantics Dilemma
Monday, September 7th, 2009Between my reading on the subject of SEO and some comments on a forum that I frequent, I came to the conclusion that using an h1 tag for the site name is a waste of a good semantic tag in most cases. The dilemma being that the site name is too generic and will likely not apply equally and relevantly to all pages. In further reading I ran across an author that felt the same about the semantical use of the h1 tag. From a semantical standpoint it would seem that the h1 tag should more closely align with the page title than the site name.
I had considered dumping the site name into a ‘p’ tag and making some conditional styling statements for a paragraph in the header block. This is easy to implement and seems to work fine. The other author thought of putting the site name in a div with an innovative id like site_name, and applying the styling to the div. This may be a better approach as there is indication in the code as to the purpose of the content of the div.
I had written an article for Selling on Your Website about HTML Semantics, so I implemented the change to the site_name div first on that site. I will probably go through and change this on some other sites now. On some of my sites I will wait for the regular update cycle to make the change. Any new sites will probably follow the new program. I will be watching my traffic analytics to see if I can identify any change in the traffic pattern that could be attributed to the change in philosophy.