8. Can you swing it?


#1

I think i did not understand very vell what is mean " > "
My task is ok but i think i had to do in other way

Task is here

p {
    font-family: Garamond;
}

body > p {
    font-weight: bold;
}

div p {
    color: #7AC5CD;
}

ul li p {
    color: #000000;
    text-decoration: underline;
}

#2

if you want to do it perfect you should have use div > p

What do you not understand, lets simplify:

<body>
  <p>direct child of body</p>
  <div>
    <p>direct child of div</p>
  </div>
</body>

if you do body > p { color: red; } only the first paragraph would be red, since that is a direct child of body. the paragraph in the div will not be red, it is not a direct child of body. A child of body, yes but not a direct one (there is still another element in between)


#3

I understood now. Thank you!


#4