23 pseudo selectors - I need help!


#1

I'm having serious problems with my code. I get the syntax error:
Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined.

My CSS code:

body :nth-child(4) {
    font-size: 26px;
}

My HTML code:

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
		<h3 class="fancy">HELLO</p>
		<p class="fancy">It's my favourite word</p>
		<p id="serious">I am serious</p>
		<p>Hello again</p>
	</body>
</html>``

What is the problem???

Many thanks in advance

codersandy1


#2

EDIT: @number972 is correct, do what he said as well.


#4

closes the tag h3 with /h3 and not with /p

(Google Translation is my friend :smile: )