CSS Pseudo-classes Quiz

CSS Pseudo-classes Quiz

5th Grade

11 Qs

quiz-placeholder

Similar activities

Google Classroom Basics

Google Classroom Basics

3rd - 6th Grade

12 Qs

FMT web developing session 4 HTML5 + CSS3

FMT web developing session 4 HTML5 + CSS3

KG - Professional Development

15 Qs

War robots quiz

War robots quiz

5th Grade - University

11 Qs

guessing game

guessing game

KG - Professional Development

10 Qs

HTML lesson 8 J6

HTML lesson 8 J6

2nd - 7th Grade

10 Qs

nba2k21

nba2k21

5th - 12th Grade

12 Qs

Lego!

Lego!

3rd - 10th Grade

10 Qs

Lerne CSS

Lerne CSS

1st - 5th Grade

10 Qs

CSS Pseudo-classes Quiz

CSS Pseudo-classes Quiz

Assessment

Quiz

Other

5th Grade

Medium

Created by

Arbresha Ajrula

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a pseudo-class used for?

To add comments in CSS

To style images only

To create a new HTML element

To define a special state of an element

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudo-class styles an element when a user moves the mouse over it?

:focus

:hover

:active

:visited

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pseudo-class is used to style visited links?

:link

:active

:hover

:visited

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a pseudo-class?

selector:pseudo-class: { property: value; }

selector:pseudo-class { property: value; }

selector:pseudo-class: property: value;

selector:pseudo-class { value: property; }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the :first-child pseudo-class match?

The first child of an element

The last child of an element

All children of an element

No children of an element

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid use of the :hover pseudo-class?

a:hover.highlight { color: #ff0000; }

a.highlight:hover { color: #ff0000; }

a:hover { highlight: #ff0000; }

a:hover { color: #highlight; }

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you hover over a link with the :hover pseudo-class?

The link becomes bold

The link gets underlined

The link disappears

The link changes color

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?