8. Can't swing it


#1

Whats the difference between
exercise's answer
li p{
color:#000000;
text-decoration:underline;
}
and
my answer:
li {
color:#000000;
text-decoration:underline;
}
both worked fine but would not let me continue until I added the p tag?


#2

First one you are targeting the list.. Second one you are targeting the paragraph within the list


#3

@zainabrawat, but the only thing inside the lists are paragraphs? So they get target as well.

@amigon189, both would have the same result, and should be fine, but the creator of this course decided it wanted you to define p as part of the css selector.


#4

Yeah I forgot to mention that..

While is if you select li p it only targets the paragraphs.. So if you have images or links it won't be targeted