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.

CSS How to Make a Website CSS: Cascading Style Sheets What is CSS?

Matthew Zepeda
Matthew Zepeda
691 Points

cant figure out why some code is still highlighted red, as a result unable to change my footer color in style element

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Matthew Zepeda | Free Lance Basic Web Designer</title> <link rel="stylesheet" href="css/normalize.css> <style> footer { color: yellow;
} </style> </head> <body> <header> <a href="index.html"> <h1>Matthew Zepeda</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <section> <ul> <li> <a href="img/3395337454_48a5c97d58_z.jpg"> <img src="img/3395337454_48a5c97d58_z.jpg" alt="Coffee & computer"> <p>Developing Your Website.</p> </a> </li> </ul> </section> <footer> <p>© 2015 Matthew Zepeda.</p> </footer> </body> </html>

Matthew Zepeda
Matthew Zepeda
691 Points

its highlight red starting at <h1> Matthew Zepeda </h1>

down to </footer> </body> </html>

the code in the question box doesn't show the last two closing tags (not enough space) but they are there.

Matthew Zepeda
Matthew Zepeda
691 Points

also what is not shown in the question box is the top two elements. <html> <head>

again not enough space. these elements are in my actual code

I know you said it left some code off at the top, but from what I can see, it looks like you didn't close your head element. Unless it just didn't show up, you don't have the </head> needed to apply everything within the head.

1 Answer

Thomas Lahoud
Thomas Lahoud
6,092 Points

You haven't closed your <head> tag which is why your seeing this problem I believe.

           </head>
            ```