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

MY HTML and CSS are not connecting

<!DOCTYPE html> <html> <head> <title>Ethan's Resume</title> <link rel="stylesheet" href="css/resume.css"> </head> <body> <img src="http://placeimg.com/200/200/tech" alt="Web Developer"> <h1>Ethan Macleod</h1> <h2>Summary of Qualifications</h2> <ul> <li>Experience as a freelance web developer</li> <li>Experience with HTML, CSS, Javascript</li> <li>Diploma of Business Management</li> </ul> </body> </html>

body { font-family: "Arial"; color: red; }

.main-image { border: solid 10px black; border-radius: 50%; }

h1 { background-color: blue; }

Tayfun İlbakan
Tayfun İlbakan
6,977 Points

You are having with your source of CSS. When I copied your code changed source as my local files, it worked perfectly fine. Can you check your below commented area (showed in line 5, commented as <!-- and -->)?

<!DOCTYPE html>
<html>

<head>

  <title>Ethan's Resume</title>
  <link rel="stylesheet" href="css/resume.css"> <! -- ARE YOUR SURE YOUR CSS FILE IS UNDER CSS FOLDER AND NAMED AS RESUME.CSS? -->

</head>

<body>

  <img src="http://placeimg.com/200/200/tech" alt="Web Developer">

  <h1>Ethan Macleod</h1>

  <h2>Summary of Qualifications</h2>

  <ul>
    <li>Experience as a freelance web developer</li>
    <li>Experience with HTML, CSS, Javascript</li>
    <li>Diploma of Business Management</li>
  </ul>

</body>

</html>

yes, it worked. thanks a lot!