본문 바로가기

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

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP