Lesson 23. What is wrong?


#1

Please help. I'm stuck.


#2

the html


#4

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)


#5

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


#6

Thank you!! how stupid of me


#7

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


#9