wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8.11 Quiz

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

What does a CSS tag selector do?

a)

Applies styles to all elements

b)

Selects a single element using an ID

c)

Changes JavaScript functionality

d)

Adds images to a webpage

2.

Which of the following is a correct CSS rule for styling all <h1> elements?

a)

h1: { color: blue; }

b)

h1 { color: blue; }

c)

#h1 { color: blue; }

d)

.h1 { color: blue; }

3.

What is the purpose of the color property in CSS?

a)

To change the background image

b)

To adjust the font size

c)

To set the text color

d)

To add spacing between elements

4.

If you want to style only one specific element, which selector should you use?

a)

Class selector

b)

ID selector

c)

Universal selector

d)

Tag selector

5.

The font-family property is used to set the background color of a webpage

a)

True

b)

False

6.

Using an ID selector in CSS requires a # symbol before the ID name.

a)

True

b)

False

7.

In the Rainbow example (8.11.3), what CSS property was used to change text color?

a)

background-color

b)

text-style

c)

color

d)

font-family

8.

The margin property controls the space inside an element's border.

a)

True

b)

False

9.

In the Dog Styling example (8.11.4), different font styles and colors were used to enhance readability.

a)

True

b)

False

10.

In the Restaurant Menu exercise (8.11.5), lists were styled to improve the organization and appearance of menu items.

a)

True

b)

False