"12. Check yourself before you wreck yourself" problem


#1


Hello, I'm creating this topic because

I got stuck at this exercise:

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

and I found no topic about my problem.


I completed it and checked many times, but this is the error message that appears:

"Oops, try again. Did you remember to close your link tag?"
("link with the <>")

This is the code I typed.

<!--HTML code-->
<!DOCTYPE html>
<html>
	<head>
	    <!--Add your <link> tag here!-->
    <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>

-----------------------------------

/*CSS code*/
h1 {
    font-family:Verdana;
}
h3 {
    font-family:Courier;
}
p {
    color: purple;
}
/*comment*/

Please help meeee.


#2

you missed a /

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

#3

omg thanks.
Now I know i missed it bc also in the exercise "5.link it up" (where it's explained how to link html to css) I missed that "/", but it didn't correct me and it looked right to me. I hope they will fix this error in https://www.codecademy.com/en/courses/web-beginner-en-TlhFi/0/5?curriculum_id=50579fb998b470000202dc8b .


#4

Both wiil be fine in HTML5 but In XHTML you need to close the link tag with a slash. :slight_smile:


#5

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