CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 10 of 153 of the static tests category | |
Testing | Date | Revision |
Substring matching attribute selector (beginning) (ID #9) | 2001-07-11 | 1.0 |
This paragraph should have a green background
because its title attribute begins with "foo"
p { background-color : red } p[title^="foo"] { background-color : lime }
<p title="foobar">This paragraph should have a green background<br> because its title attribute begins with "foo"</p>