I have a few students who are having an issue with a stylesheet not linking to his/her html page.
This first student has 3 stylesheets (1 for each page). 2 of them work, but the 3rd one does not. The html page is cookies.html and the stylesheet is cookies.css.
To get help as efficiently as possible, please fill out the following in any debugging requests:
Link to your project: click the “Share” button at the top of the page and paste the link it produces into your post.
Are there any particular steps that cause the error?
What did you expect the program to do?
What did it do instead?
The box should auto-populate with these fields when you submit a post in the Debugging category; if not, please let us know so that we can fix that for you.
May the problem be that his stylesheet has a different name? He changed it from the default one that is provided when you first create the Css file on the codelab.
On his stylesheet line, he has the following code:
<link rel="stylesheet1" href="stylesheet1.css">
It’s ok to change the name of the stylesheet (stylesheet1.css) as long as the file is named the same as the href attribute, however, in the “rel” attribute, it has to be called “stylesheet”. So if he changes his code to the following, I’m guessing it will work.