CSS [attribute = value] Selector
CSS selectors complete reference manual
Examples
Select all use target = "_ blank" elements of a
a [target = _blank]
{
background-color: yellow;
}
{
background-color: yellow;
}
try it"
<H2 Definition and Usage
[Attribute= value] selector is used to select the specified element attributes and values.
Browser Support
All major browsers support[attribute= value] selector.
Note: [attribute = value] run in IE8, you must declare <DOCTYPE!>
related articles
CSS tutorial: CSS attribute selectors
CSS selectors complete reference manual