There is many ways to structure an html page. Some may prefer good semantic and other pure SEO. This is an attempts to define if really one of these method has significant impact on SEO ranking.
With html5 and all the sectioning elements it's possible to have a good semantic document like the following.
<header>
<a href="/"><h1>Site title</h1></a>
</header>
<main>
<article>
<h1>Page title</h1>
</article>
</main>
- Good css outline 1
- Consistent
- ...
- Page title not indexed as much as it can
- Possibly less accessible since there is no know support of outline 1 2
- ...
Most SEO expert will prefer to have the page title in the h1, leaving the site title out of any hn.
<header>
<a href="/">Site title</a>
</header>
<main>
<article>
<h1>Page title</h1>
</article>
</main>
- Page title should have a better search ranking
- Consistent across the whole website
- ...
- Don't follow html5 best practice 1
- ...
Sometimes we see this alternative of the SEO solution above. All internal pages are like the one described above except the frontpage which will have the site title in h1.
<header>
<a href="/"><h1>Site title</h1></a>
</header>
<main>
<article>
<h2>Frontpage title</h2>
</article>
</main>
- Good semantic on frontpage
- Pages title should have a high search ranking
- ...
- Not consistent across website
- Don't follow html5 best practice except on frontpage 1
- ...
How to test if any of these method has a particular effect on SEO ranking? Feel free to submit a pull request if you have a good idea about this but here is how this could be done.
- Have a micro website with one of those solution.
- Wait a little to have the website indexed.
- Change the method and go to step 2.
This solution will avoid possible duplicate content penalty which may happen if we would test all methods at the same time on different domain.
- google webmaster tools