CSS2 Test Suite: 5.9 ID Selectors

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

#one {color: green;}
#1 {color: red;}
#id1 {color: green;}
P#id2 {color: blue;}
P#id3 {color: purple;}

This sentence should be green.

[1] This sentence should be black, not red-- ID selectors cannot begin with digits in CSS1.

[id1] This sentence should be green.

[id2] This paragraph should be blue.

[id2] This sentence should NOT be blue.
[id3] This sentence should be black.

[id11] This paragraph should be black.


[index page] [section] [Previous] [Next] [Specification]