Canonical Tag: The HTML That Names the Master URL

The canonical tag is a line of HTML that points search engines to the master version of a page. Learn how it differs from the canonical URL and how to use it safely.

Quick Definition

Canonical tag is a line of HTML in the page head that points search engines to the master version of a page, using the rel="canonical" attribute.

What a Canonical Tag Does

The canonical tag is a link element in the head that names the preferred address for the page. When search engines find several URLs with the same content, the tag tells them which one should carry the ranking signals.

It is a way of resolving a messy situation: duplicates and near-duplicates stop splitting their strength across versions.

Canonical Tag vs Canonical URL

The canonical URL is the address itself, the master copy a site wants ranked. The canonical tag is the HTML that declares that address on every version of the page.

Many sites use both together: the tag sits in the head and points at the canonical URL, and together they tell search engines exactly where the strength should land.

When to Use a Canonical Tag

  • On pages reachable through multiple URLs, like with or without tracking parameters.
  • On near-duplicate versions, such as printer-friendly or variant pages.
  • Whenever the same content exists at more than one address, point every version at the one you want ranked.

Common Canonical Mistakes

  • Pointing the tag at a page that redirects or carries a noindex directive, which muddles the signal.
  • Using relative paths that break when the site structure changes.
  • Adding the tag while another version forces a redirect, so the two signals disagree.
Example in Practice

The site: a blog is reachable at both "post" and "post?utm_source=newsletter".

The reading: search engines see two copies of the article and split the ranking signals.

The fix: both URLs carry a canonical tag pointing at the clean post URL.

Why it works: the duplicates consolidate into one page that climbs the results instead of two weak copies.

💡

Quick Tip

Use a URL inspection tool to confirm the canonical search engines actually picked, because they do not always follow the tag.

Frequently Asked Questions

A canonical tag is an HTML link element with rel="canonical" that points search engines to the master version of a page.
The canonical URL is the master address itself. The canonical tag is the HTML that declares that address on the page.
It lives in the head of the page, pointing at the canonical URL you want search engines to prefer.
No, it is a strong recommendation. Search engines weigh it against redirects, noindex, and other signals on the page.

Canonical Tags, Bottom Line

The canonical tag is the polite instruction that tells search engines which URL gets the credit.

Use it to point every duplicate at one master, and the page stops splitting its vote.