CSS Pseudo-classes Quiz

CSS Pseudo-classes Quiz

5th Grade

11 Qs

quiz-placeholder

Similar activities

KIU COL Y PE

KIU COL Y PE

1st - 5th Grade

10 Qs

Icebreaker

Icebreaker

4th Grade - Professional Development

10 Qs

Jeff Bezos

Jeff Bezos

2nd Grade - University

6 Qs

My Pride Fan Quiz

My Pride Fan Quiz

5th Grade

11 Qs

Star wars

Star wars

2nd - 12th Grade

8 Qs

ALL ABOUT ME

ALL ABOUT ME

5th Grade

6 Qs

How to train your dragon

How to train your dragon

KG - Professional Development

10 Qs

War robots quiz

War robots quiz

5th Grade - University

11 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?