HTML & CSS Basics
chapter 05 · Introduction to CSSstep 1 / 8 mode · learn
Connecting a stylesheet

The <link> tag

CSS lives in a separate file (style.css) so it can be reused across pages. You connect it inside <head> with: <link rel="stylesheet" href="style.css" /> Without that line, the browser has no idea your CSS file exists.

why it matters

A missing <link> tag is the #1 reason beginners say 'my CSS isn't working'. Always check this first.