CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 5 of 182 | |
Testing | Date | Revision |
Attribute existence selector (ID #5) | 2001-07-11 | 1.0 |
This paragraph should have a green background because its TITLE attribute is set.
p { background-color : red } p[title] { background-color : lime }
<p title="title">This paragraph should have a green background because its TITLE attribute is set.</p>