Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web 1: Types of selectors

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What type of selector is...

.blue

a)

Tag

b)

Class

c)

ID

d)

Compound

2.

What type of selector is...

#wrapper

a)

Tag

b)

Class

c)

ID

d)

Compound

3.

What type of selector is...

p

a)

Tag

b)

Class

c)

ID

d)

Compound

4.

How do you reference this element in CSS...

<p class="highlight">

a)

.highlight

b)

#highlight

c)

highlight

5.

How do you reference this element in CSS...

<div id="right">

a)

.right

b)

#right

c)

right

6.

If you want EVERY single paragraph styled as arial, what type of selector would you use?

a)

tag

b)

class

c)

ID

d)

compound

7.

If you want SOME images to have a border, what type of selector would you use?

a)

tag

b)

class

c)

ID

d)

compound

8.

If you want ONE heading to have a dropshadow, what type of selector would you use?

a)

tag

b)

class

c)

ID

d)

compound

9.

What type of selector is...

nav li

a)

Tag

b)

Class

c)

ID

10.

Which is a properly written class attribute?

a)

<p class="red">

b)

<p class=".red">

c)

<p> <class="red">

d)

<p class="#red">