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?
...
OR...
](https://stackoverflow.com/questions/7023512/which-is-more-correct-h1a-a-h1-or-ah1-h1-a) ā mhrabiee Jul 17 '19 at 16:12or
ā dbc Jul 16 '20 at 15:57inside anchor tag: which is better?](https://webmasters.stackexchange.com/q/20446/100199) answers this question there.