Ask HN: What is the correct version of “canonical” tag?
Could you tell the correct version of the rarely used "canonical" tag, please
<link rel="canonical" href="http://mysite.com" />
VS
<link rel="canonical" href="http://mysite.com">
Thanks.
<link rel="canonical" href="http://mysite.com" />
VS
<link rel="canonical" href="http://mysite.com">
Thanks.
For a HTML4 doctype, you use the second.
For a HTML5 doctype, you can use either.