Search Header Logo

CSS Pseudo-Classes Quiz

Authored by Ayesha Nadeem

Information Technology (IT)

University

Used 1+ times

CSS Pseudo-Classes Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What pseudo-class matches a hovered element?

:active

:focus

:hover

:target

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudo-class matches a checked checkbox?

:default

:enabled

:checked

:target

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does :lang(en) match?

Tags with dir="en"

Tags with English content

Tags with lang="en"

Tags with label="en"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudo-class selects an empty input field?

:blank

:empty

:read-only

:indeterminate

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these matches a disabled button?

:enabled

:checked

:read-write

:disabled

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does :focus-within match?

Only the focused input

Any parent of a focused element

Hidden elements

Only buttons

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

:fullscreen applies to...?

Video elements only

Any element currently in fullscreen

Only

Any element currently in fullscreen

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?