What am I doing wrong here? step 17

Step 17

Now you need to link the styles.css file so the styles will be applied again. Nest a self-closing link element in the head element. Give it a rel attribute value stylesheet , a type attribute value of text/css , and an href attribute value of styles.css .

  **Your code so far**

< head>
< link rel=“stylesheet” type=“text/css” href=“style.css”>
< meta charset=“utf-8” />
< title>Cafe Menu< /title>
< /head>

i don’t understand what’s wrong with the code?

I think it’s having an issue with the placement of where the line

< link rel=“stylesheet” type=“text/css” href=“style.css”>

is located. In the code I did it’s below the title tags. It appears correct to me otherwise. Give that a shot.

2 Likes

Hi @Declicous ,

You shouldn’t be adding spaces here :

(Restart the step as you’ve added too many spaces).

Check the href attribute value again you are missing an s.

You also need to be using "" instead of “”.

i added those spaces because it kept disappearing when I posted it

1 Like

Oh that’s fine then. Is it working for you now ?


When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks.

```
Your code goes here
```

You can also use the “preformatted text” tool in the editor ( </> ) to add backticks around text.

1 Like

it’s styles.css not style.css

3 Likes

I had the same issue. I had the change the order and it worked for me.

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

I added href attribute before the others, and it was a success.

4 Likes

wow funny how my line of code is different from all the answers.

Blockquote

<link rel="stylesheet" href="styles.css"

Blockquote

1 Like

It too was successful!

1 Like

This is what I got as well. I believe this is the order that directions are saying to put it in to be honest.

Thankyou

first of all the spaces are the main problem and also youre using the wrong commas these are the right ones " so the new code will look like this

Cafe Menu

i know i am very late to commenting but i am also still learning so this helps me to

Had this same issue and turns out it was this typo too! Thank a bunch:)

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