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!

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 Adding a New Web Page Write the CSS

Alexis Hay
Alexis Hay
Front End Web Development Techdegree Student 8,693 Points

Linking CSS to HTML trouble


I seem to be stuck linking the CSS to HTML. I have the files in the same folder and I checked it for mistakes. For some reason the <h1> is not turning blue. I figured two eyes are better than one when spotting this silly bug. Thank you!

resume.html code: <!DOCTYPE html> <html> <head> <title>Alexis Hay's Resume</title> <link rel="stylesheet" href"resume.css"> </head> <body> <img src="http://placeimg.com/200/200/tech" atl="Alexis Hay, Web Developer"> <h1>Alexis Hay, Web Developer</h1> <h2>Summary of Qualifications</h2> <ul> <li>Experience with HTML, CSS, and JavaScript</li> <li>Bachelor of Science, Criminal Justice</li> </ul> </body> </html>

resume.css code: h1 { color: blue; }

2 Answers

Hi Alexis!

You are missing an = for one thing:

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

It should be:

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

I hope that helps.

Stay safe and happy coding!

helped me too! thanks!