📝On-Page SEO

Canonical Tag

Quick Definition

A canonical tag (rel="canonical") is an HTML element that tells search engines which version of a page is the preferred one when duplicate or similar content exists at multiple URLs.

Why It Matters

A canonical tag tells Google which version of a page is the "official" one when similar or duplicate content exists at multiple URLs. Without it, Google might split your ranking power across duplicate pages or pick the wrong version to show in results. Canonical tags are a must-know for technical SEO.

Real-World Example

An e-commerce site like Myntra might have the same product accessible via multiple URLs: /shoes/nike-air-max, /sale/nike-air-max, and /brand/nike/air-max. A canonical tag on the duplicate pages pointing to /shoes/nike-air-max tells Google "this is the original -- rank this one."

Signal Connection

Presence -- canonical tags prevent your ranking power from being diluted across duplicate URLs. By consolidating signals to one canonical URL, you strengthen that page's presence in search results.

Pro Tip

Add a self-referencing canonical tag to every page on your site (each page points to itself). This prevents issues when URL parameters, tracking codes, or session IDs create accidental duplicates. Most CMS platforms and frameworks have settings to do this automatically.

Common Mistake

Using canonical tags to point to completely different content. The canonical tag is meant for pages with similar or identical content. If Page A is about shoes and Page B is about shirts, canonicalizing A to B makes no sense and Google will ignore it.

Test Your Knowledge

When should you use a canonical tag?

A.When you want to delete a page
B.When multiple URLs have the same or very similar content
C.When you want to speed up page loading
D.When you want to block search engines from a page
Show Answer

Answer: B. When multiple URLs have the same or very similar content

Canonical tags are used when the same or very similar content is accessible at multiple URLs, telling Google which version to treat as the primary one. To delete a page use a 404, to block crawlers use robots.txt or noindex, and canonical tags have no effect on page speed.

Learn this concept in depth. Free SEO course — 111 interactive lessons.

Learn More in the Free Course