<link> tag not detected


#1

On CSS: An Overview, Chapter 12. "Check yourself before you wreck yourself", I'm given an error labeled "Oops, try again. Did you remember to close your tag?".

I double-checked index.html to make sure the link to stylesheet.css was between the tags, and that it's written properly, but I still get this error. I even looked back at Chapter 5. "Link it up!" for reference. Strangely, my preview shows the headers and paragraph changing text as I wrote the CSS code as instructed.

Could there be a problem with the code, or is there an error with the compiler?

Source:

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

stylesheet.css
` /* stuff */

h1 {
font-family:Verdana;
}

h3 {
font-family:Courier;
}

p {
color:purple;
}`


#2

Hi try to change you tag link like that

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

#3

It works.

I also tried the code I originally posted on my browser, and it works when using the closing tag. I think there may be a bug that won't accept that tag method for this particular chapter.

Either way, thanks for helping!


#4

I am attempting this lesson as well, and I'm seeing the same problem. The code we typed is almost identical, only different on line 6--I used the self closing tag, and no .

Has this been confirmed as a bug? I can't tell if I am doing something wrong.


#5

HI don't post on an old post 2 months later if you need help you should create a new topic with your code and the error you get..