Loading CSS
The design of a page usually lives in a separate CSS file. A <link> in the head connects that file to the page.
Step by step
<link>connects the page to another file.hrefsays where the CSS file is.rel="stylesheet"says the file is the page design.- Without the right
rel, the browser does not apply the file.
The card, bug marked
1<link rel="preload" as="image"
2 href="images/live.webp"
3 fetchpriority="high">
4<link href="css/landing.css"
5 rel="style">
This is how it's right
<head>
<link href="css/landing.css"
rel="stylesheet">
</head>
Exercises for this topic
Key rule
A CSS file only works with rel="stylesheet".
Where you'll meet this
Every styled website has at least one of these lines in the head. If a page suddenly looks plain, check the href and the rel.