Automattic/_s — pull request #76 by ashfame (2012-09-09 20:43:58+00:00)
Title: Changing H1 tags usage to make html output semantically correct

Right now H1 tag is being abused and there are multiple instances of H1 on many pages, which is semantically incorrect, as every page can only have a single H1 tag.

I have changed the H1 tags usage so that they are output only once, as per the context and WordPress's `Frontpage settings` under `Reading` sub-settings section of `Settings`.

**What things are fixed?**

* Site title and description uses H1 & H2 tag only when on homepage
* Page / Post titles are H1 on their individual pages, and not on archive pages
* Assistive text are not H1 anymore
* Widget titles are not H1 anymore

Tested with WordPress defaults and custom settings for Frontpage display, and now this outputs optimal markup in terms of semantics.

Since this will make pages output semantically correct data, this will also help in improving SEO.