CSS1 Test Suite: 1.5 ID as selector


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

The style declarations which apply to the text below are:

#one {color: green;}
#a1 {color: green;}
P#two, P#two2 {color: blue;}
P#three, P#three2 {color: purple;}
#four {color: green;}
#a2 {color: green;}
P#five, P#five2 {color: blue;}
P#six, P#six2 {color: purple;}

This sentence should be green.

This sentence should be green.

This paragraph should be blue [ID="two"].

This sentence should NOT be blue [PRE ID="two2"].
This sentence should be black, not purple [PRE ID="three"].
TABLE Testing Section
 

This sentence should be green.

This sentence should be green.

This paragraph should be blue [ID="five"].

This sentence should NOT be blue [PRE ID="five2"].
This sentence should be black [PRE ID="six"].
  • This sentence should NOT be purple.

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