CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 142 of 182 | |
Testing | Date | Revision |
:first-letter with ::first-letter (ID #166) | 2001-01-01 | 1.0 |
The first letter of this paragraph should have a green background.
p:first-letter { background-color: red; } p::first-letter { background-color: lime; }
<p>The first letter of this paragraph should have a green background.</p>