Does Canonical Tag Syntax Matter?
-
Does anyone know definitively if the format of the canonical tag matters? Silly question I know.
vs
-
Thanks ViviCa. Sorry for the typo in my second example. You answered my question despite it. Take care.
-
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>
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Hreflang Tags - error: 'en' - no return tags
Hello, We have recently implemented Hreflang tags to improve the findability of our content in each specific language. However, Webmaster tool is giving us this error... Does anyone know what it means and how to solve it? Here I attach a screenshot: http://screencast.com/t/a4AsqLNtF6J Thanks for your help!
Technical SEO | | Kilgray0 -
How similar do pages need to be to utilize the canonical tag
One of my pages is a help and questions page about completing a conversions and the other is the actual campaign landing page. They are both ranking for the same term. While the subject of both pages is similar the content is not. Is the rel canonical tag appropriate here?
Technical SEO | | cbarron0 -
Duplicate Pages , Do they matter ?
I have been told buy the company who created my site that duplicate page warning are not a problem ? my site is small and only has 50 pages ( including product pages etc ) yet the crawl shows over 6500 duplicate pages am I right to be concerned?
Technical SEO | | Gardening4you0 -
E Tags and SEO relevance
While working through a number of issues related to the speed of my site I came across a discussion of E Tags. I did not read much positive about them. How do they affect SEO? Or do they?
Technical SEO | | casper4340 -
Does location of Server matter for ranking in country
Hi everyone, I'm looking for business in other countries and launching some sites over there, but i was wondering does the location of the server / IP matter? For example:
Technical SEO | | iwebdevnl
I want to launch a website in Denmark, do i have to have webhosting in Denmark to rank better over there so Google sees i'm from there? Or isn't this neccesary? Thanks, regards0 -
Title Tag Wordpress
I need to know how can I personalize the title tag individually in my categories?
Technical SEO | | nafera20 -
Rel=Canonical being ignored?
Hi all, We have a toys website that has several categories. It's setup such that each product has a primary category amongst the categories within it can be found. For example... Addendum's primary url is http://www.brightminds.co.uk/childrens-toys/board-games/addendum.htm but it can also be found here http://www.brightminds.co.uk/learning-toys/maths-learning/addendum.htm. Hence, in the for that url it has a rel=canonical that points to the first url. For some reason though seomoz ignores this and reports duplicate page content. It doesn't seem to record the canonical tag either. Any ideas what's going on? Thanks, Josh.
Technical SEO | | joshgeake_gmail.com0