CSS element,element Selector

❮ Previous Selectors Next ❯


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


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.


❮ Previous Selectors Next ❯