This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

561 points
059d2b6cdb17fbbfc7b875085302ca16?s=140&d=retro
Submitted by
Gecko_po_2002_54ac5ff7e39efebfff0029
over 2 years ago

Why can't I link my index.html and stylesheet.css files?

I was trying to make the font-size 44px using my stylesheet.css file as opposed to the , as that was the challenge of this lesson. however, I can't determine what went wrong, because the stylesheet.css folder is there, but isn't affecting index.html. When I try to show the code here, most of it doesn't show up. It's the starter code for 5/26 of CSS: An Overview. I had the link type="text/css" rel="stylesheet" between the opening head tag and opening html tag.

  Thanks in advance!
Gecko_po_2002

3 votes

permalink

To link your CSS with your HTML you should use a link tag which you have started to use but not finished. You should have a 'href' part to the link. This is what it looks like:

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

432 points
6d3ba23867c4f6c15f69f5e7812b03ba?s=140&d=retro
Submitted by
red7cool
over 2 years ago

2 Comments

059d2b6cdb17fbbfc7b875085302ca16?s=140&d=retro Gecko_po_2002_54ac5ff7e39efebfff0029 over 2 years ago

Thanks! Turns out I forgot the href part at the end.

6d3ba23867c4f6c15f69f5e7812b03ba?s=140&d=retro red7cool over 2 years ago

np


0 votes

permalink

check here how to format your code. Your code is currently not visible. if you update your question please leave a comment so i get a notification.

If you put your code i a comment, i am going to ask you to redo it, and use proper format.

Does your link have an href attribute? it is the most important bit of the <link> tag

2457 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
over 2 years ago


-22 votes

permalink

fuck u

157 points
5537fad076b8feae870000d5_454777984
Submitted by
Murry288
over 2 years ago