๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

Idempotency
A property where performing an operation multiple times produces the same result as performing it once.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
WebSocket
A communication protocol that enables full-duplex, real-time data exchange between a browser and server over a single connection.
Web Vitals
Google's metrics for measuring user experience quality, including loading speed, interactivity, and visual stability of web pages.
Progressive Enhancement
A web design strategy that starts with basic functionality for all browsers and progressively adds advanced features for capable ones.
Responsive Design
A web design approach that makes web pages render well on all screen sizes using flexible layouts and media queries.
View All Web Development Terms โ†’