BytesFor Developers
HomeBytesheetsRoadmapsUI TemplatesUI ToolsStack Discussion
Back to full course
Prev

Link Relations

The <link> element connects the document to external resources or describes relationships. Common examples include stylesheets, canonical URLs, icons, alternate versions, and preload resources.

Link Relations
<link rel="stylesheet" href="styles.css">\n<link rel="canonical" href="https://example.com/articles/html">\n<link rel="icon" href="/favicon.ico">
💡 The rel attribute describes the relationship between the current document and the referenced resource.
Key Takeaways
  • rel communicates the relationship of a linked resource.
  • Canonical links can help search engines identify a preferred URL.
Knowledge Check

Which rel value identifies a preferred URL for a page?

STAY UPDATED WITH BYTES!

AboutPrivacyTermsCookies & ads

© 2026 Bytes4Dev. All rights reserved.

v.0.4.0