Canonical tag (<link rel=”canonical” href=”URL” />) is an HTML element that helps search engines understand the preferred version of a webpage. When multiple pages have similar or identical content, the canonical tag specifies the “canonical” or “preferred” version.
Canonicalization is the process of selecting the main, or “canonical,” URL for a piece of content. The canonical URL is the one that Google considers the most representative out of a set of duplicate pages. This helps Google show only one version of the same content in its search results, a process often called deduplication.
There are several reasons why a website might have duplicate content: