braindrill

CSS Selectors

11 practice questionsWeb DevelopmentStep-by-step solutions

Try a few

1

In CSS, which selector targets an element by its id attribute?

A..name
B.#name
C.*name
D.name
๐Ÿ”’ Answer + full step-by-step solutionUnlock free โ†’
2

Which CSS selector targets all elements with class name card?

A..card
B.#card
C.card
D.*card
๐Ÿ”’ Answer + full step-by-step solutionUnlock free โ†’
3

Which CSS selector matches all elements with the class 'btn'?

A.#btn
B..btn
C.btn
D.*btn
๐Ÿ”’ Answer + full step-by-step solutionUnlock free โ†’

Master css selectors โ€” not just preview it

All 11 questions with worked solutions, an AI tutor that explains every step, and games that make the drilling stick. Free to start.

Practice this topic free

No card needed ยท 10 free AI questions daily