Trouble with the last step


#1

Link a file called style.css to index.html. The attributes should be set in the following order: href, type, rel.

Note: The contents of style.css aren’t important for now, so the file is not shown at the moment. In the next unit, you’ll learn more about the fundamentals of CSS.

Not sure what I am missing. I have the attributes in the right order. Having trouble with linking the style.css.


#2

Hi @dkcq1994 ,

For us to help you, do provide:

  • A link to your exercise (we need to see which exercise you’re talking about, some exercises have many steps/stages)
  • Tell us what problem you faced or what error you had.
  • Paste and format your code accordingly read more here ( We need to see your code so we can point out where is the problem)

Hope to hear from you soon. Cheers :slight_smile:


#3

https://www.codecademy.com/courses/learn-html-css/lessons/css-setup/exercises/review-css-setup?action=lesson_resume

Having an issue with the style sheet.


#4

Have you written the code?

<link href="....." type="....." rel=".......">

is too vague. You need to be more specific. What error the exercise says?

Please post your code.


#5

I tried adding the commas. It still won’t let me move on to the next lesson.


#6

Hi @dkcq1994,

If you wish for someone to help, again:

Refer the post here:


Secondly,

There is no commas


Lastly, we totally understand you’re stuck in the exercise, but by saying:

  • Trouble with the last step
  • Copy & pasting the instruction:
    – (Link a file called style.css to index.html. The attributes should be set in the following order: href, type, rel.
    Note: The contents of style.css aren’t important for now, so the file is not shown at the moment. In the next unit, you’ll learn more about the fundamentals of CSS.)
  • Having an issue with the style sheet.
  • It still won’t let me move on to the next lesson.

…will not help clarify your situation any better.

You need to tell us what error the lesson returned? And most importantly, your code.


Cheers


#7

Outside References

I would suggest using google often. When it comes to coding some of the answers you need you will have to figure out on your own, but that doesn’t mean there isn’t information to help along the way.

Have a read:
W3 Schools - CSS How To

One note is that the link to the stylesheet also depends on the origin. Say if it’s coming from a CDN(Content Delivery Network) you may see a link like this:

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> 

Whereas if your stylesheet was coming from your own hosting provider/server you would see something like:

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

As for terminating single tags I’ve found it’s more of a preference of convention thing. “<br>” and “<br/>” work just fine.

Do a bit of reading and then try to write the stylesheet link from scratch.


#8

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