Search Header Logo

CSS Selector Practice

Authored by Tim Helland

Computers

10th - 12th Grade

Used 218+ times

CSS Selector Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will select all table cells on a page?

TABLE.cell

TD

TH

TD, TH

TABLE:all-cells

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If there are no code errors, which of these can only select one element from a page?

#blue

.blue

P.blue

H1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these selects all page elements?

#

.

*

&

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these would select all of the hyperlinks on a page? (choose all that apply)

[href]

a

#href

link

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will select all paragraphs that are inside of a div element?

div p

p div

p > div

div > p

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these selects any image where class="logo"?

logo.img

img.logo

#logo

img logo

img > logo

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these requires <div> to be an immediate child of another <div>?

div > div

div, div

div div

div ~ div

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?