What does the canonical tag mean?
The canonical tag is a <link> element placed in a page's <head>, in the form <link rel="canonical" href="URL">. It tells Google and other search engines which version of a page is the "official" one when the same content, or something very similar, can be visited at several URLs: through tracking GET parameters, through www and non-www versions, through http and https at once, or through a page syndicated on another domain. It's one of the most basic signals in technical SEO, alongside page speed and clean indexing.
It sits in the <head> alongside other meta tags and alongside structured data, but does a different job: it doesn't describe the page's content, it marks which URL should collect the value of every version.
One case gets forgotten constantly: every page, whether or not it has a known duplicate right now, should carry a canonical tag pointing back to itself, the so-called self-referencing canonical. Nothing visible changes the day it goes live, but it prevents future confusion: if the page later becomes reachable through new parameters, if a plugin generates a printable version, or if someone syndicates it on another site, the self-referencing canonical is already there settling the question before it turns into a problem. Adding it systematically in every template costs no more than skipping it, and it saves page-by-page reviews down the line.
