Line 22: | Line 22: | ||
<html> | <html> | ||
<style> | <style> | ||
− | h2 ~ p: | + | h2 ~ p:nth-of-type(2) { |
background-color: red; | background-color: red; | ||
} | } | ||
− | h2 ~ p:nth-of-type( | + | h2 ~ p:nth-of-type(3) { |
background-color: green; | background-color: green; | ||
} | } | ||
− | h2 ~ p:nth-of-type( | + | h2 ~ p:nth-of-type(4) { |
background-color: blue; | background-color: blue; | ||
} | } | ||
</style> | </style> | ||
</html> | </html> |
Revision as of 12:24, 7 October 2018