CSS • 12 lessons

Make your pages look good.

Style your pages with colors, layouts and animation.

12 lessons · 12 live examples · 100% free
Preview — CSS
body { background: #f8fafc; color: #1e293b; }
h1 { color: #2563eb; text-align: center; }
style.cssflexboxgrid
CSS tutorial

Learn CSS the right way — from color to layout

Searching for css tutorial or learn css? This 12-lesson track is a complete, free CSS tutorial for beginners — with live editor on every lesson.

What is CSS and what does CSS stand for?

What is CSS? CSS stands for Cascading Style Sheets — the language that styles HTML. Our What is CSS? lesson explains the cascade, selectors and why color vs background-color matters, with a live preview.

CSS tutorial for beginners — colors, box model, Flexbox & Grid

Learn css tutorial (176 weekly impressions) step by step: colors and gradients, the box model, Flexbox and Grid for real layouts, positioning and media queries. Each lesson shows the effect instantly — perfect if you want to learn CSS for responsive sites. See Box Model, Flexbox, Grid.

  • css tutorial • css basics • learn css
  • css colors • css box model • flexbox • grid
Why this track

Why learn CSS with HtmlRunner?

◐

See color & layout live

Change a hex code and watch the preview repaint — no save, no refresh.

▣

Modern layout, not floats

We teach Flexbox and Grid — the way real sites are built today.

◎

Private & free

No signup. All CSS renders in your browser.

Jiyasrul Alom Juwel
Jiyasrul Alom Juwel
Founder, HtmlRunner — building free tools for everyone. About the author →
f in G
Curriculum

CSS curriculum

Follow in order or jump to any lesson. Every lesson has a live editor.

Start Lesson 1 → Open Playground
FAQ

CSS FAQ

CSS stands for Cascading Style Sheets — it styles HTML.

HTML is structure, CSS is design. Learn both in our HTML and CSS tracks.

Use <link rel="stylesheet" href="style.css"> in the head. See What is CSS?

Flexbox is for one-dimensional rows, Grid for two-dimensional layouts. Both are in this track.

No — all CSS lessons run in your browser.

Ready for more?

Explore other tracks or build in the Playground.

→ All Tracks