CSS Syntax, 12 check yourself before your wreck yourself

Hi Guys, I am getting an error here:
“Oops, try again. Did you remember to close your tag?”. I am not sure why this is happening because I have closed the link.

	<!--Add your link tag here!-->
	<link type="text/css"; rel="stylesheet"; href="stylesheet.css"></link>
	<h1>Change me to Verdana.</h1>
	<h3>Change me to Courier.</h3>
	<p>Make me purple!</p>
1 Like

The error is in your third line.

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

i can’t remember where they teach you this, but maybe you can go back a few steps and read the instructions on linking an external stylesheet.

attributes (link, type, rel) are seperated by spaces only, no semi-colons. They don’t really teach you how self closing tags work, but remember that you had to close the image with a slash:

<img src="#" />

<img> is self closing, just like <link>


Link type is a self-closing tag, you don’t need the /link at the end.

true, but this exercise you to write the link in xml syntax (self closing, aka a slash at the end in the opening tag)

They do, in the exercise link it up (css an overview) for example.

2 posts were split to a new topic: Check yourself