| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| <html> |
| <head> |
| <title>ID selectors</title> |
| <style type="text/css">li { background-color : red } |
| #t1 { background-color : lime } |
| li#t2 { background-color : lime } |
| li#t3 { background-color : lime } |
| #t4 { background-color : red }</style> |
| <link rel="first" href="css3-modsel-1.html" title="Groups of selectors"> |
| <link rel="prev" href="css3-modsel-14e.html" title="NEGATED More than one class selector"> |
| <link rel="next" href="css3-modsel-15b.html" title="Multiple ID selectors"> |
| <link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child"> |
| <link rel="up" href="./index.html"> |
| <link rel="top" href="../../index.html"> |
| </head> |
| <body> |
| <ul> |
| <li id="t1">This list item should have a green background. because its ID is "t1"</li> |
| <li id="t2">This list item should have a green background. because its ID is "t2"</li> |
| <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match "#t4"</span></li> |
| </ul> |
| </body> |
| </html> |