CSS [attribute] selector
CSS selectors complete reference manual
Examples
Select all <a> elements with target properties:
a [target]
{
background-color: yellow;
}
{
background-color: yellow;
}
try it"
Browser Support
All major browsers support[attribute]selector.
Browser Support
All major browsers support[attribute]selector.
Note: [attribute] run in IE8, you must declare <DOCTYPE!> .
related articles
CSS tutorial: CSS attribute selectors / a>
CSS selectors complete reference manual