Styling and layout. But CSS is far more than colours — it can animate, build 3D, react to state and lay out entire pages, all with no JavaScript.
Hidden radio buttons + the :checked selector make fully working tabs without a single line of JavaScript. Click them.
CSS animates on its own with @keyframes + animation. A spinning gradient ring and a flowing colour bar — both looping forever, no JS.
perspective + transform: rotateY() + backface-visibility create real 3D. Hover the card.
The same boxes, re-arranged from Flexbox to Grid — toggled purely with CSS.
Modern CSS can style a parent based on its children. Tick the box — the whole card turns green via label:has(input:checked).
A simple transition turns an instant change into a smooth one. Hover the card to see it lift.
:checked, :hover and :has() with no JavaScript at all. Only HTML provides the structure for the CSS to style.