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

Color not changing

<!Doctype html>
<html>
    <head>
        <title>Nick</title>
        <link rel="stylesheet" href="resume.css">
    </head>
    <body>
        <img src="https://placeimg.com/640/480/any" alt="****">
        <h2>Summary of Qualifics</h2>
        <ul>
            <li>Cheese cake</li>
            <li>Apples</li>
            <li>Cheese</li>
        </ul>
    </body>
</html>
h1 {
    color: yellow;
}

Moderator edited: Markdown added so that code renders properly in the forums. Additionally, I have edited the code to remove profanity. Please refrain from such language in your posts even when in your code. Take a moment and review Treehouse's Code of Conduct

2 Answers

I don't see a <h1> element in your HTML to style. Only a <h2> element.

Samuel Llibre Santos
Samuel Llibre Santos
15,467 Points

You are calling a Tag that isn't in your HTML. You hace to options: Change h2 on html to h1 and gonna work, or change h2 selector in CSS file. ;)

<!Doctype html>
<html>
    <head>
        <title>Nick</title>
        <link rel="stylesheet" href="resume.css">
    </head>
    <body>
        <img src="https://placeimg.com/640/480/any" alt="****">
        <h1>Summary of Qualifics</h1>
        <ul>
            <li>Cheese cake</li>
            <li>Apples</li>
            <li>Cheese</li>
        </ul>
    </body>
</html>
h1  {
    color: yellow;
}

Have fun ;)