1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: Class as selector
</title>
5 <style type=
"text/css">
12 p
.two
{ color: green
; }
13 p
.three
{ color: red
; }
15 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/selector.html#class-html" title=
"5.8.3 Class selectors">
18 <p class=
"one"> This sentence should be green.
</p>
19 <div> <p class=
"1"> This sentence should be green.
</p> </div>
20 <p class=
"a1"> This sentence should be green.
</p>
21 <p class=
"two"> This sentence should be green.
</p>
22 <div> <pre class=
"three">This sentence should be green.
</pre> </div>
23 <div> <ul> <li class=
"three">This sentence should be green.
</li> </ul> </div>