Recall & Review
beginner
What is a CSS stylesheet?
A CSS stylesheet is a file or section where you write rules to style HTML elements, like colors, fonts, and layout.
Click to reveal answer
beginner
How do you link a CSS stylesheet to an HTML file?
Use the <link> tag inside the <head> of your HTML: <link rel="stylesheet" href="styles.css" />.
Click to reveal answer
beginner
What does this CSS rule do?
body { background-color: lightblue; }It changes the background color of the whole page to light blue.
Click to reveal answer
beginner
Why use CSS instead of inline styles?
CSS keeps style separate from content, making it easier to change styles for many pages at once and keeps code clean.
Click to reveal answer
beginner
What is the correct syntax for a CSS rule?
Selector { property: value; } For example: p { color: red; }
Click to reveal answer
Which HTML tag is used to link an external CSS stylesheet?
✗ Incorrect
The <link> tag connects an external CSS file to the HTML document.
What does this CSS rule do?
h1 { font-size: 2rem; }✗ Incorrect
The rule sets the font size of all <h1> elements to 2 rem, which is relative to the root font size.
Where should the <link> tag for CSS be placed in an HTML document?
✗ Incorrect
The <link> tag belongs in the <head> so styles load before the page content.
Which property changes the text color in CSS?
✗ Incorrect
The 'color' property sets the color of the text.
What is the correct way to write a CSS comment?
✗ Incorrect
CSS comments are written between /* and */.
Explain how to create and link your first CSS stylesheet to an HTML page.
Think about the file, the CSS code inside, and how HTML knows about it.
You got /4 concepts.
Describe the basic structure of a CSS rule and what each part does.
Focus on selector, property, and value.
You got /5 concepts.