Type Selector
Pattern:
elementName
Description:
Type selector matches by the name of an element in the document.
Every instance of the element name is matched.
It is also referred as "element selectors".
Examples:
body {background: #FFF;}
p {font-size: 1em;}
Home
HTML CSS Book
CSS Reference
HTML CSS Book
CSS Reference
Selector:
- Universal Selector
- Type Selector
- Descendant Selector
- Child Selector
- Adjacent Sibling Selector
- Class Selector
- ID Selector
- Simple Attribute Selector
- Exact Attribute Value Selector
- Partial Attribute Value Selector
- Hyphen-separated Attribute Value Selector
- !important
Related: