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.
1 Like
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
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.
it’s styles.css not style.css
1 Like
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.