Menu
Document Structure & Metadata
<link> Tag
Connect external CSS, favicons, fonts, and canonical URLs.
1Common Uses
The <link> tag (a void element) connects the document to external resources. It is most often used for stylesheets and favicons.
Example Code
<link rel="stylesheet" href="/styles.css" />
<link rel="icon" href="/favicon.ico" />
<link rel="canonical" href="https://example.com/page" />
<link rel="preconnect" href="https://fonts.googleapis.com" />Finished reading?
Mark this topic as complete to track progress.