What is the error in this.?


#1



Replace this line with your code.


Please correct this. Show me the working code
#2

this explanation only works if your html code is correct as well.

The spacing between p and :nth-child(3) is crucial, with the spacing as you currently have it, it will select the third element inside the paragraph.

You remove the space (p:nth-child(3)), this will select the 3rd element of any parent if the element is a paragraph. Which brings me to my next point, for the exercise, it should be should p:nth-child(4), since nth-child counts all elements, and if the 4th element is a paragraph, apply the styling between the curly brackets.

A better way to explain this, would be to say that p:first-child doesn't apply styling, since the first element is a h3, not a paragraph