Stuck on 12 and I can't figure out what's wrong with my code


#1


https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/1/6?curriculum_id=50579fb998b470000202dc8b


I'm getting an error saying "Oops, try again. Did you remember to close your < link > tag?" and I don't understand why or how to fix it. I've gone over it time and time again, but I can't find anything wrong. I'll post the HTML and then the CSS.


<!DOCTYPE html>
<html>
	<head>
    	<link type="text/css" rel="stylesheet" href="stylesheet.css">
		<title>Result</title>
	</head>
	<body>
		<h1>Change me to Verdana.</h1>
		<h3>Change me to Courier.</h3>
		<p>Make me purple!</p>
	</body>
</html>

h1 {
    font-family: Verdana;
}

h3 {
    font-family: Courier;
}

p {
    color: purple;
}

/*This is a comment.*/


#2

this exercise requires you to use xml syntax, close the link with a slash:

<link type="text/css" rel="stylesheet" href="stylesheet.css" />

#3

That would explain it. I wasn't aware of needing the slash because I didn't include it in this exercise and it passed fine. Thanks. Especially for the speedy reply.


#4

it is xml syntax, you will use it very little. Normally with the closing slash it is fine.


#5

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