This issue has been solved. Thank you, @stetim94!
I am on 23. Pseudo Selectors, here’s the css:
I have tried
Yet, none of them work as intended.
The error returned is as shown in the title.
Any help would be of up most appreciation.
The HTML as requested
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<p id="serious">Paragraph 2</p>
It is also important that the html code is correct, can you also post your html code?
I can’t seem to be able to stop the HTML from parsing.
If you don’t succeed it is alright
The post has been edited with the HTML as requested,
you should have close your heading (
</h3>), before you started the paragraphs. Nesting paragraphs in headings and vice versa is bad practice
Then you can use either
body :nth-child(4) to select the 4th element inside the body, or
p:nth-child(4) to select the 4th element of any parent, if it is a paragraph
Thank you for your help!
I have passed this section.