EXERCISE

CSS Selectors

Chapter 2 · Recognise and choose appropriate element, class, ID, group and descendant selectors.

👤

Student Information

Select your class and name once. This browser will remember your selection for the next exercise or quiz.

Loading class list…
Your name is loaded from the student database. You do not need to type it repeatedly.
Exercise 2B

CSS Selectors

Recognise and choose appropriate element, class, ID, group and descendant selectors.

QUESTION 1 OF 10

Which selector targets class="card"?

QUESTION 2 OF 10

Which selector targets a link when the pointer is over it?

QUESTION 3 OF 10

Which selector targets every <p> element?

QUESTION 4 OF 10

Which selector targets id="header"?

QUESTION 5 OF 10

Which selector targets inputs with type="text"?

QUESTION 6 OF 10

Which selector targets <p> elements inside .content?

QUESTION 7 OF 10

Which selector has higher specificity in normal circumstances?

QUESTION 8 OF 10

An ID should ideally be…

QUESTION 9 OF 10

Which selector targets direct child <li> elements of .menu?

QUESTION 10 OF 10

Which selector targets the first child paragraph?