Lesson 23 help pseudo selectors


#1



Am I missing something? It looks like I have text in my third paragraph.


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<h3 class="fancy">
		<p class="fancy">
		<p id="serious">HI</p>
		<p id="serious">HELLO</p> 
		
	</body>
</html>


#2

Hi @suzileigh

The point of this exercise is to use CSS pseudo selectors like :nth-child() The issue shouldn't be in your HTML, but instead your CSS. Please also include your CSS Code.

Also, you need to make sure you're closing tags. <h3 class="fancy"> needs to have a closing <h3> tag. The same for the <p> tag of the same class below it.


#3

Thank you. The error I was receiving was not in my CSS which is why I did not include it but you are right in that I forgot to close my

tag which was the reason for the error. Thank you!

#4

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.