Exact Attribute Value Selector
Pattern:
element1[attr="value"]
Description:
Exact attribute value selector selects elements based on the value of an attribute.
Examples:
a[rel="Start"] {font-weight: bold;}
p[class="urgent"] {color: red;}
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: