Introduction to CSS
What is CSS?
CSS stands for Cascading Style Sheets. It controls how HTML elements look, including colours, spacing, layout and responsive behaviour.
You can add CSS in a stylesheet, a style element, or an inline style attribute. External stylesheets are usually easiest to maintain.
Code example
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
}
h1 { color: rebeccapurple; }