CSS Tutorial

Style your pages with selectors, box model, Flexbox, Grid, and responsive design.

What is CSS?

Cascading Style Sheets (CSS) control presentation of HTML. You can write CSS inline, in the head, or in an external stylesheet.

/* External file: styles.css */
h1 { color: #111827; }
.container { display: grid; gap: 1rem; }

Flexbox

Use flex utilities to align elements in a row or column

← Back to HTML Next: PHP →