A canonical URL is an HTML element that helps prevent the duplicate
content issues in SEO by specifying the canonical or
preferred version of the web page. As described in RFC 6596
Why A Canonical URL Matters?
Avoids search engines from labeling web pages as duplicate content
How To Fix Your Canonical Link Issues
The canonical tag only belongs in the head partion of the page