Codele / How software is built
CSS: making it look good
HTML says what is on the page. CSS says how it looks, using rules that find things and give them a new look.
- CSS decides how a page looks. HTML decides what is on it.
- A rule names what to find, then lists looks inside { }.
- Each look is a property and its value, like color: blue;
- A rule on an outer box, like body, reaches the boxes inside it.
- Change the CSS and the page changes while the HTML stays the same.
Loading the playable lesson…