OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>Selectors Level 4: :first-of-type</title> |
| 5 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/> |
| 6 <style type="text/css"> |
| 7 div > *|* { |
| 8 display: block; |
| 9 color: black; |
| 10 border: thin solid; |
| 11 margin: 1em; |
| 12 } |
| 13 .yellow { |
| 14 background: yellow; |
| 15 } |
| 16 .green { |
| 17 background: lime; |
| 18 } |
| 19 </style> |
| 20 </head> |
| 21 <body> |
| 22 <div> |
| 23 <p class="green">This line should have a green background.</p> |
| 24 <p class="yellow">This line should have a yellow background.</p> |
| 25 <p class="yellow">This line should have a yellow background.</p> |
| 26 <p class="green">This line should have a green background.</p> |
| 27 <p class="green">This line should have a green background.</p> |
| 28 </div> |
| 29 </body> |
| 30 </html> |
OLD | NEW |