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

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

erin mackel
erin mackel
1,088 Points

writing CSS code. not linking to html

Introduction to HTML and CSS at video Writing CSS.. Problem..my CSS code isn't linking up. font color won't change... h1 { color: blue; }

2 Answers

Probably there must be spell error or syntax error in css. As syntax error in CSS it doesn't throw error instead it doesn't do what it is supposed to do.

following worked for me. resume.html <link rel="stylesheet" href="resume.css">

resume.css h1{ color:blue; }

Claudia Robinson
seal-mask
.a{fill-rule:evenodd;}techdegree
Claudia Robinson
Full Stack JavaScript Techdegree Student 8,357 Points

I'm having the same problem, but saw in an answer further back that removing the .css from the file name in the href makes it work for me. So for example, instead of:

href="resume.css"

I have:

href="resume"

and it's working!

I'm not sure why, but there you go! Hope this works.