wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

[Hall] Intro to CSS

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

Which of these rules would select all of the <h2> elements on a page?

a)

<h2> { color: red; }

b)

h2 { color: red; }

c)

#h2 { color: red; }

d)

.h2 { color: red; }

2.

What is the missing symbol?

a)

;

b)

:

c)

.

d)

#

3.

How do you select an element with id 'demo'?

a)

#demo

b)

*demo

c)

demo

d)

.demo

4.

What is the missing symbol?

a)

;

b)

:

c)

=

d)

""

5.

How do you select an element with class 'demo'?

a)

#demo

b)

*demo

c)

demo

d)

.demo

6.

What is the missing symbol?

a)

;

b)

:

c)

.

d)

#

7.

Where is the correct place to add the <style></style> tags?

a)

In the <head> section

b)

In the <body> section

c)

At the end of the document

8.

Which can be used to identify MORE THAN ONE element?

a)

id

b)

class

9.

What is the missing symbol?

a)

;

b)

:

c)

=

d)

""

10.

How do you select an element with id 'unicorn'?

a)

#unicorn

b)

*unicorn

c)

unicorn

d)

.unicorn

11.

How do you select an element with class 'unicorn'?

a)

#unicorn

b)

*unicorn

c)

unicorn

d)

.unicorn

12.

What is the missing symbol?

a)

;

b)

:

c)

=

d)

""

13.

Which of these rules would select all of the <p> elements on a page?

a)

<p> { color: red; }

b)

p { color: red; }

c)

#p { color: red; }

d)

.p { color: red; }

14.

Which type of selector is unique with a page?

a)

class

b)

id