Lesson 23. What is wrong?

Please help. I’m stuck.

the html

I disagree with @jibblyj, the space between body and :nth-child(4) is need to select the 4th element inside body, if you remove the space, nth-child will check if the 4th element is body (it is not, it is a paragraph)

The error is caused by the fact that your fancy paragraph has a uppercase p, this should be lowercase (html is case-sensitive, the uppercase opening tag doesn’t match lowercase closing tag, messing up the count)

1 Like

I disagree with @jibblyj too, hence the removal of my comment :stuck_out_tongue:

Thank you!! how stupid of me

2 posts were split to a new topic: 23. pseudo selector