!important
This style property adds more importance to a declaration. In the following example, the first three declarations have increased importance, while the last declaration has normal weight.
Example:
h1 { color: black !important; background: white !important }
p { font-size: 12pt !important; font-style: italic }
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: