ควิซ HTML & CSS: CSS Selectors

This CSS quiz checks that you can read a selector and tell which elements it matches. You will work with classes, ids, attribute selectors, descendant and child combinators, and common pseudo-classes like :hover and :nth-child().

ง่าย 10 ข้อ ~5 นาที ผ่านที่ 80%

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

Which selector matches every element that has the class card?

ดูเฉลย

C. .card A dot selects by class, so .card matches any element whose class list contains card. #card selects by id, and a bare card looks for a <card> element.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • Type, class, id and universal selectors
  • Descendant, child and sibling combinators
  • Attribute selectors like [type="email"]
  • Pseudo-classes such as :hover, :first-child and :nth-child()
  • Pseudo-elements like ::before and grouping with commas

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง