CSS element.class Selector

❮ Previous Selectors Next ❯

Example

p.example { 
  background-color: red;
}

Meaning

The element.class selects the specified elements of type selector(element) with a particular class value.

Version: CSS1




Standard Syntax

element.class {
  css declarations;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Selectors Next ❯