HTML Semantics Action Taken
Monday, September 7th, 2009Following the article about HTML Semantics I began to wonder more about the use of the h1 tag for the site name. In most cases the site name only describes the general content of the page. There should be only one h1 tag per page, and it seems a waste to ‘waste’ that one h1 tag on the site name. Semantically, something closer to the page title would be appropriate for the lone h1 tag on a page.
I happened across an article discussing this subject with regard to WordPress Blogs and the author echoed my thoughts on the Semantical use of the h1 tag. His thought is to use a div and apply the styling to the div as far as font and size is concerned. I had considered just using a p tag with a conditional rule for the header. Either approach will work. The possible slight advantage to using the div is that the id used for the div can have a descriptive name like ‘site_name’.
I incorporated that change last evening on the main site. While I was doing that I checked, added, and upgraded the semantical markup for the content of the site. I now have a consistent presentation from page to page, with the h1 tags aligned with the page titles instead of the site name. I will keep my eye on things and see if this makes a difference as far as traffic count is concerned. With any luck it will be a bit difficult to tell as I hope to implement plans to drive traffic to my sites through other means as well.