CSS element (type) Selector

❮ Previous Selectors Next ❯

Example

h1 { 
  background-color: red;
}

p { 
  background-color: green;
}

div { 
  background-color: pink;
}

Meaning

The element selector selects all element of the name specified in the rule.

Version: CSS1




Standard Syntax

element {
  css declarations;
}



Browser Support

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




Status







❮ Previous Selectors Next ❯