Class Selector

Term side of the Card
Topic: Selectors
Unit title: Class Selector
Categories: Selector
Explanation side of the Card

Explanation: The selector that targets elements based on their `class` attribute. It's one of the most common selectors and is written with a '.' symbol, followed by the class name, enabling to apply styles to multiple elements with the same name.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: