Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

The <H1> color is not blue- in spite of everything being correct. Code for HTML and CSS included here...

Code in my resume.html is as follows:

<!DOCTYPE html> <html> <head> <title>R's Resume</title> <link rel="sylesheet" href="resume.css"> </head> <body> <img src="http://placeimg.com/200/200/animals" alt="RO-Coder"> <h1>RO Newbie Coder</h1> <h2>Summary of Qualifications</h2> <ul> <li>Several classes</li>
<li>TreeHouse HTML and CSS</li> <li>Bachelor of Science</li> </ul> </body> </html>

CODE in my CSS file which is called resume.css as follows:

h1 { color: blue; }

  1. I've checked capitalization.
  2. Yes they're both in the same folder.
  3. Yes, I have saved both the html and the css files

When I go online to "inspect element" for the h1, it says there "this page has no stylesheet". I don't understand why, and/or how to fix that.

Please help. Thank you.

2 Answers

Cameron Childres
Cameron Childres
Treehouse Moderator 11,714 Points

Hi ranaaltanolk,

You have a typo in the link to your CSS:

<link rel="sylesheet" href="resume.css">

If you fix the spelling on "stylesheet" everything should be linked up correctly and you'll see the color applied to h1.

Well, that's embarrassing. After 15 minutes of staring and back and forth... I guess that's why sometimes just having another set of eyes look at it helps.

Thank you so much! Lesson learned, nevertheless! :)

John Maxwell
John Maxwell
9,249 Points

The CSS is probably not linked correctly to the HTML. Try giving that double check? Should be

<link rel="sylesheet" href="rootfolder/resume.css">

Try listing the root folder for the css separately. Then use css/resume.css.