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

I can't get my css to link to my html? My code is the same as hers, help!

<!DOCTYPE htmml> <html> <head> <title>Emily Reynods Resume</title> <link rel="stylesheet" href="resumeemily.html">

</head> <body> <h1>Emily Reynolds</h1> <img src="https://placeimg.com/200/200/tech" alt="Emily Reynolds, Web Developer" class="main-image">

<h2 class="section-title">Summary of Qualifications</h2>
<ul>
  <li>Experience</li>
  <li>Experience with HTML, CSS, Javascript</li>
  <li>Bachelor of Science, Biochemistry</li>
</ul>

</body> </html>

<!DOCTYPE htmml> <html> <head> <title>Emily Reynods Resume</title> <link rel="stylesheet" href="resumeemily.html">

</head> <body> <h1>Emily Reynolds</h1> <img src="https://placeimg.com/200/200/tech" alt="Emily Reynolds, Web Developer" class="main-image">

<h2 class="section-title">Summary of Qualifications</h2>
<ul>
  <li>Experience</li>
  <li>Experience with HTML, CSS, Javascript</li>
  <li>Bachelor of Science, Biochemistry</li>
</ul>

</body> </html>

I'm not sure why the whole code isn't posting...

Steven Parker
Steven Parker
231,236 Points

Use Markdown formatting for posting code. Watch this video to see how.

But for an issue like this, something else besides the code could be a problem. To share the entire environment, make a snapshot of your workspace and post the link to it here.

3 Answers

Jacqueline Guiry
Jacqueline Guiry
1,762 Points

Your link to your css: <link rel="stylesheet" href="resumeemily.html">

The file you're pointing to is an html file not a css file.

Check your <!DOCTYPE htmml> you have 2 m's instead of just one, I hope it helps.

Luis Munguia Salas
Luis Munguia Salas
14,797 Points

<!-- <!DOCTYPE html> <<- A SINGLE m. NOT DOUBLE mm <html> <head> <title>Emily Reynods Resume</title> <link rel="stylesheet" href="resumeemily.html"> <<- THIS NEEDS TO BE resumeemily.css

  </head> 

<body> <h1>Emily Reynolds</h1> <img src="https://placeimg.com/200/200/tech" alt="Emily Reynolds, Web Developer" class="main-image">

-->