What is canonical tag in SEO ?
539
16-Nov-2020
Home / DeveloperSection / Interviews / What is canonical tag in SEO ?
Rahul Roi
16-Nov-2020A canonical URL is also known as a canonical tag.
The canonical tag (rel=“canonical”) is a snippet of HTML code that defines the main version for duplicate, near-duplicate and similar pages.
Into other words, if you have the same or similar content available under different URLs, you can use canonical tags to specify which version is the main one and thus, should be indexed.
The canonical tags use simple and consistent syntax, and are placed within the <head> section of a web page:
<link rel=“canonical” href=“https://example.com/sample-page/” />
Here’s what each part of that code means in plain English:
2. href=“https://example.com/sample-page/”: The canonical version can be found at this URL.
Canonical tags important for SEO
Where the Google doesn’t like duplicate content. That makes it very harder for them to choose: