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
How does CSS separate content from design?
CSS keeps the HTML content clean by handling all the visual styles separately, like colors, fonts, and layout, so the content and design are managed independently.
Click to reveal answer
beginner
What is the role of selectors in CSS?
Selectors tell the browser which HTML elements to style. For example,
p selects all paragraphs, and .className selects elements with a specific class.Click to reveal answer
intermediate
Explain the box model in CSS.
The CSS box model describes how elements are wrapped in boxes made of content, padding, border, and margin. It helps control spacing and layout.
Click to reveal answer
beginner
What is the difference between classes and IDs in CSS?
Classes can be used on multiple elements to apply the same styles, while IDs are unique and used for a single element. Classes start with a dot (.) and IDs with a hash (#).
Click to reveal answer
Which CSS property changes the background color of an element?
✗ Incorrect
The
background-color property sets the background color of an element.What does the CSS selector
.menu select?✗ Incorrect
A dot (.) before a name selects all elements with that class.
Which part of the CSS box model controls the space outside the border?
✗ Incorrect
Margin is the space outside the border, separating elements from others.
How do you apply CSS styles directly inside an HTML element?
✗ Incorrect
The
style attribute inside an HTML tag applies CSS directly to that element.Which CSS property controls the font size of text?
✗ Incorrect
The
font-size property sets how big or small the text appears.Describe the CSS box model and explain how it affects the layout of a web page.
Think of an element as a box with layers around it.
You got /6 concepts.
Explain how CSS selectors work and give examples of different types of selectors.
Selectors tell CSS which parts of the page to style.
You got /4 concepts.