Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Jong Park
Jong Park
2,380 Points

My resume.css does not seem to be linked to resume.html

I wrote like this on HTML: <link rel="stylesheet" href="resume.css">

And on CSS: hi { color: blue; }

But on preview page, the color doesn't change. How can I make the CSS link to HTML? Please help!

2 Answers

link tag is :

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

Whereas in css:

  1. To apply the property over element:
  • CSS: p{ color: "RED" }
  • HTML: <p>My name is Donald.</p>
  1. To apply the property over element-id:
  • CSS: #idOfElement{ color: "RED" }
  • HTML: <p id="idOfElement">My name is Donald.</p>
  1. To apply the property over class:
  • CSS: .className{ color: "RED" }
  • HTML: <p class="className">My name is Donald.</p>
Aline Pauwels
Aline Pauwels
7,353 Points

Write this : <link rel="stylesheet" href="css/resume.css">

Good luck !