🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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"?

  1. A.#btn
  2. B..btn
  3. C.btn
  4. 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 →