HTML · Document structure

link

Connects the document to an external resource: stylesheets, icons, font preloads, canonical URLs and alternate feeds.

Syntax
<link rel="stylesheet" href="styles.css">

Example

Try it

Notes

link is a void element: it has no closing tag.

More in this group

<!doctype html> base body head html meta charset meta description meta robots

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course