📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials CSS Mastery What is CSS?

What is CSS?

4 min read Quiz at the end
CSS controls how HTML looks — colours, fonts, spacing, layout, and animations. It is separate from HTML to keep structure and style apart. Every visual element of a webpage from colour to animation is defined in CSS.

What is CSS?

CSS (Cascading Style Sheets) controls the visual appearance of HTML — colours, fonts, layout, spacing, and animation.

/* Basic CSS rule */
p {
    color: navy;
    font-size: 16px;
    line-height: 1.6;
}

CSS selects HTML elements and applies styles to them.

Topic Quiz · 5 questions

Test your understanding before moving on

1. What does CSS stand for?
💡 CSS stands for Cascading Style Sheets.
2. CSS controls:
💡 CSS controls the visual appearance of HTML — colours, fonts, spacing, and layout.
3. Which is the recommended way to add CSS?
💡 External CSS files are best — reusable, cacheable, and keeps HTML clean.
4. What is a CSS rule?
💡 A CSS rule = selector { property: value; } — it selects and styles elements.
5. What does "Cascading" mean in CSS?
💡 Cascading means styles can inherit from ancestors and multiple rules are resolved by priority.