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 CSS Basics Getting Started with CSS Adding CSS to HTML: Inline Styles

Adding style attributes

When copying what Anwar does to add a style for the body and for my H1 it makes all the letters after that red and I'm not sure why? I added a snapshot of my page.

https://w.trhou.se/0j6vjr4rr5

1 Answer

Caleb Kemp
Caleb Kemp
12,754 Points

because you're missing the closing quotation mark

this

<h1 style="color: white; >

should be this

<h1 style="color: white;" >

Same thing for the body styles you added

<body style="background-color: orange;>

should be

<body style="background-color: orange;">