<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<title>CSS 2.1 Test Suite: ID as selector</title> | |
<style type="text/css"> | |
body {color: red;} | |
#test1 {color: green;} | |
#test2 {color: green;} | |
p#test3 {color: green;} | |
</style> | |
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" title="5.9 ID selectors"> | |
</head> | |
<body> | |
<p id="test1"> This line should be green. </p> | |
<p id="test2"> This line should be green. </p> | |
<p id="test3"> This line should be green. </p> | |
</body> | |
</html> |