What Is It?
What Is a Canonical Tag?
The canonical tag (rel="canonical") is an HTML link tag that tells Google which URL is the "master" version of a page. When the same or very similar content is reachable from multiple URLs, it tells Google which one you want indexed.
Canonical is not a redirect; users can still access every URL. It only sends a signal to search engines: "treat this URL as the primary one, consider this a duplicate." Google largely respects this, but it's not binding — if signals conflict, Google makes its own choice.