Duplicate pages are rarely deliberate. A site ends up with the same content at several addresses because of tracking parameters, www and non-www versions, print views or product filters. Canonical tags are how you tell search engines which version you consider the main one. Here is how they work, with examples you will recognise.
What is a canonical tag?
It is a single line in the <head> of a page:
<link rel = "canonical" href = "https://www.example.com/services/web-design/" >
Enter fullscreen mode
Exit fullscreen mode
It says: "If you find this content at several URLs, this is the one I prefer to show in search." Search engines then tend to consolidate signals, such as links, onto that preferred URL.
One important detail: Google treats the canonical tag as a strong hint, not a command. If other signals disagree (redirects, internal links, sitemap entries), Google may choose a different canonical.…