2 artifacts
Tap to collapse details
Create a workspace: Use CodePen (free online editor) or install VS Code (free).
Link CSS to HTML: Start with basic HTML:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>Hello CSS!</h1> </body> </html>
In styles.css:
styles.css
h1 { color: blue; }
Study fundamentals: Read MDN: What is CSS? and Getting started with CSS. Practice selectors (type: p, class: .intro, ID: #main).
p
.intro
#main
Test: View changes live in browser or CodePen.
❌ Forgetting to save or refresh the browser
→Always Ctrl+S (save) and Ctrl+R (refresh); use live preview in CodePen
❌ Incorrect selector syntax like missing dots for classes
→Use . for class (.classname), # for ID (#idname), no prefix for type (p)
Tap to expand details
Spin up a personalized “learn CSS” plan you can save, check off, and return to anytime — unlimited on the free trial.
freeCodeCamp
Codecademy
by Jon Duckett
by Eric Meyer
Structured beginner modules with challenges
Interactive examples and references
In-depth guides on Flexbox, Grid, and more
Online playground for HTML/CSS/JS
Powerful free code editor with extensions
Inspect, debug, and test responsive CSS