🌐Cascading Style Sheets (CSS)
Also known as CSS, CSS3, Stylesheet
The language for how a web page looks. It sets colours, fonts, sizes and layout.
Think of it like
Think of it like the clothes and paint on a house. The house is the same, but it can look any way you like.
Example
Jack changes one line of CSS and every button on his site turns green.
Why it matters
CSS turns plain text into a page people want to use. It also makes sites work on phones.
Definition
Example code
css
button {
background: green;
color: white;
padding: 8px 16px;
}Common mistake
Key takeaways
- 1Looks only. HTML holds the content.
- 2One file, many pages. Change once, see it everywhere.
- 3The cascade. Decides which rule wins.