What is a canonical tag?
Definition
A canonical tag (rel="canonical") tells search engines which URL is the main version of a page when the same or very similar content is available at several addresses.
Duplicate URLs are common: tracking parameters, filters, printer versions, or the same product in two categories. Without a canonical tag, Google has to guess which one to rank, and ranking signals get split between them.
The tag sits in the page's <head>: <link rel="canonical" href="https://www.example.com/page/">. Every important page should point to itself, and duplicates should point to the main version.
Example
An online saree store lists the same product at /sarees/silk/kanjivaram-red/ and /new-arrivals/kanjivaram-red/. Both pages set the canonical to the first URL, so Google ranks one strong page instead of two weak ones.
