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

CSS

The body text doesn't change color, what's wrong?

I had the codes exactly as it shows on video, however the body text is still black. I'm trying to follow the project and I'm on "introduction to CSS". Please can anyone help?

<!DOCTYPE html>
<html>
<head> 
<title> Smells Like Bakin </title>
<style>
 body { 
    background-color: #420600;
   }
 h1 {
    color: #FAF3BC;
 }
 p {
    color: #FAF3BC;
   }
</style>
</head>

<body>
    <h1>Smells Like Bakin</h1>
    We combine unexpected flavors that melt together to create ironically delicious desserts. 
</body>

</html>

1 Answer

You gotta wrap your text in p tags like this:

<p>We combine unexpected flavors that melt together to create ironically delicious desserts.</p>

The styling is right, but it's got nothing to apply it to! :)

Thanks a lot Tiffany!

No problem :)