Bỏ qua nội dung

Selectors — class and id

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

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP