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

Nick Evershed
Nick Evershed
5,535 Points

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

Andrew Phythian
Andrew Phythian
15,363 Points

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

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 ;)