CSS element,element Selector

❮ Previous Selectors Next ❯

Example

h1, div, p  { 
  background-color: red;
}

Meaning

The element,element applies the same rules to a group of tags.

Note: Don’t leave a comma after the last selector in the group.

Version: CSS1




Standard Syntax

element,element {
  css declarations;
}



Browser Support

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




Status







❮ Previous Selectors Next ❯