ข้ามไปยังเนื้อหา
English

Three kinds of selector

  • A selector says which elements a rule changes.
  • By tag: p { ... } changes every <p>.
  • That is the kind you used last lesson.

p selects every paragraph, .note every element with class note, #title the one element with id title

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP