Does Canonical Tag Syntax Matter?
-
Does anyone know definitively if the format of the canonical tag matters? Silly question I know.
vs
-
It needs to open with <link... as="" it="" is="" a="" <link="">tag and rel and href are attributes.</link...>
I don't think it makes any difference if you put or . Based on my understanding of HTML, the order of attributes doesn't make a difference but the first option seems to be more commonly used (rel attribute first, href attribute second).
So your second example is wrong as it would mean it is a <href>tag (which doesn't exist).</href>
-
Thanks ViviCa. Sorry for the typo in my second example. You answered my question despite it. Take care.