CSS Syntax, 12 check yourself before your wreck yourself


#1

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.

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

#2

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.


#3

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>


#4

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


#5

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


#7

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


#8

2 posts were split to a new topic: Check yourself


#10