Attr Selector
CSS [attribute] Selector
The [attribute] selector is used to select elements with a specified
attribute.
Example
CSS [attribute=”value”] Selector
The [attribute="value"] selector is used to select elements with a specified
attribute and value.
Example
CSS [attribute~=”value”] Selector
The [attribute~="value"] selector is used to select elements with an attribute
value containing a specified word.
Example
CSS [attribute|=”value”] Selector
The [attribute|="value"] selector is used to select elements with the specified attribute starting with the specified value.
Example
CSS [attribute^=”value”] Selector
The [attribute^="value"] selector is used to select elements whose attribute
value begins with a specified value.