I always come across this (rather simple question) when creating, for example, Wordpress blogs. Should I wrap the header, which should also be a link, in the <a> anchor 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) , since it seems more logical to me that the title is enclosed in a link.
Does it matter, for example, SEO? Does this reflect SEO rankings?
html semantics seo hyperlink
Frederik Wordenskjold Nov 17 2018-11-21T00: 00-11
source share