Pular para o conteúdo

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

Material de apoio

Entrar ou criar conta

IGCSE, A-Level & AP