🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Beginner

What is Canonical URL?

An HTML element that tells search engines which URL is the preferred version of a page when duplicate or similar content exists at multiple URLs.

The canonical tag (link rel="canonical" href="...") consolidates SEO signals when the same content is accessible via multiple URLs. Common scenarios include HTTP vs HTTPS, www vs non-www, trailing slashes, URL parameters (sorting, pagination, tracking), and syndicated content. Without canonical tags, search engines may split ranking signals across duplicates or choose the wrong version to index. Self-referencing canonicals (pointing to the current URL) are best practice for all pages. Canonical URLs should be absolute (not relative), consistent with the sitemap, and match the URL returned by redirects. They are a hint, not a directive — search engines may override them.

Related Terms

SSR (Server-Side Rendering)
A technique where web pages are rendered on the server and sent as complete HTML to the browser, improving SEO and initial load time.
Web Components
A set of browser-native APIs for creating reusable, encapsulated custom HTML elements with their own styling and behavior.
Web Accessibility (a11y)
The practice of designing websites that can be used by people with disabilities, following WCAG guidelines.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
HATEOAS
Hypermedia As The Engine Of Application State — a REST constraint where API responses include links to related actions and resources.
Sitemap XML
An XML file that lists all important URLs on a website, helping search engines discover and crawl content efficiently.
View All Web Development Terms →