Id selector

#value an element with an id attribute equal to value. Ids must be unique for each page.

See also:

  • Class selector
  • Type selector
  • Universal selector
  • Attribute selector
  • Child selector

Class selector

.value an element with the class attribute that contains value.
An element can have multiple classes seperated by spaces and a page can have the same class multiple times.

See also:

  • Id selector
  • Type selector
  • Universal selector
  • Attribute selector
  • Child selector

Type selector

Matches any HTML element

Universal selector

Matches all elements.

See also:

  • Class selector
  • Id selector
  • Type selector
  • Attribute selector
  • Child selector
Syndicate content