Recall & Review
beginner
What does CSS stand for?
CSS stands for Cascading Style Sheets. It is used to style and layout web pages.
Click to reveal answer
beginner
What is the main purpose of CSS in web development?
CSS controls how HTML elements look on the screen, including colors, fonts, spacing, and layout.
Click to reveal answer
beginner
How does CSS separate content from design?
HTML provides the content and structure, while CSS handles the visual style, making it easier to change design without touching content.
Click to reveal answer
beginner
What is a CSS rule made of?
A CSS rule has a selector (which HTML elements to style) and a declaration block (style properties and values).
Click to reveal answer
intermediate
Why is CSS called 'Cascading' Style Sheets?
Because styles can come from different places and 'cascade' down, with rules deciding which style wins if there are conflicts.
Click to reveal answer
What does CSS control on a webpage?
✗ Incorrect
CSS controls the visual appearance and layout of HTML elements on a webpage.
Which of these is a valid CSS selector?
✗ Incorrect
The selector 'p' targets all paragraph elements. '#p' would target an element with id='p', and '.html' targets elements with class='html'. '
' is HTML syntax, not a CSS selector.
Where is CSS usually written?
✗ Incorrect
CSS is written inside