CSS1 Test Suite: 1.4 Class as selector


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 11 May 1998

The style declarations which apply to the text below are:

.one {color: green;}
.1 {color: red;}
.a1 {color: green;}
P.two {color: #003300;}

This sentence should be green.

This sentence should be black, not red-- class selectors cannot begin with digits in CSS1.

This sentence should be green.

This sentence should be dark green.

This sentence should NOT be dark green.

This sentence should be green.

This sentence should be black, not red-- class selectors cannot begin with digits in CSS1.

This sentence should be green.

This sentence should be dark green.

This sentence should NOT be dark green.
  • This sentence should NOT be dark green.

[Previous] [Next] [Section] [Contents] [Specification]