Worksheets8.11 Quiz
Total questions: 10
Worksheet time: 8mins
What does a CSS tag selector do?
Applies styles to all elements
Selects a single element using an ID
Changes JavaScript functionality
Adds images to a webpage
Which of the following is a correct CSS rule for styling all <h1> elements?
h1: { color: blue; }
h1 { color: blue; }
#h1 { color: blue; }
.h1 { color: blue; }
What is the purpose of the color property in CSS?
To change the background image
To adjust the font size
To set the text color
To add spacing between elements
If you want to style only one specific element, which selector should you use?
Class selector
ID selector
Universal selector
Tag selector
The font-family property is used to set the background color of a webpage
True
False
Using an ID selector in CSS requires a # symbol before the ID name.
True
False
In the Rainbow example (8.11.3), what CSS property was used to change text color?
background-color
text-style
color
font-family
The margin property controls the space inside an element's border.
True
False
In the Dog Styling example (8.11.4), different font styles and colors were used to enhance readability.
True
False
In the Restaurant Menu exercise (8.11.5), lists were styled to improve the organization and appearance of menu items.
True
False
