← Quiz: CSS Basics: all 10 questions
Quiz: CSS Basics · Question 1 of 10
Which selector targets all elements with class="btn"?
Which selector targets all elements with class="btn"?
- A.#btn
- B..btn
- C.btn
- D.*btn
Answer & explanation
Correct answer: .btn
A dot selects by class; # selects by id.
Can you get the rest right without peeking?
Take the timed Quiz: CSS Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →