8. Can't swing it


Whats the difference between
exercise's answer
li p{
my answer:
li {
both worked fine but would not let me continue until I added the p tag?


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


@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.


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