I always stumble upon this (rather simple question) when making e.g. Wordpress blogs. Should I wrap the headline, which should also be a link, in a anchor <a>
element, or should it be the other way around. And why?
(1):
<a href="foo">
<h1>bar</h1>
</a>
(2):
<h1>
<a href="foo">bar</a>
</h1>
I always end up doing (1), as it just seems more logical to me, that the headline is wrapped in a link.
Does it make any difference in e.g. SEO? Will it reflect the SEO ranking?