Lesson 1 of 50
cssWhat is CSS?
8 mins
Course progress2%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 1 of 50
css8 mins
Keep these ideas in mind as you work through the lesson.
CSS (Cascading Style Sheets) is the presentational language that tells the browser how a document should look. It lives alongside HTML (structure) and JavaScript (behaviour) forming the classic triad of front‑end development.
color, margin, grid-template-columns). A declaration is the pair of property + value.<p style="color:red; font-weight:bold;">Hello CSS!</p>
Why it matters: Inline styles have the highest specificity, but they break the separation of concerns that makes a site maintainable.
Large‑scale applications keep all visual rules in external stylesheets. This lets browsers cache the file, reduces page weight, and makes it possible to run tools like Stylelint or PostCSS on the CSS.