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

Add Style to the Page Challenge

I just started this program and the second challenge is to use <style> tags to change the color of your h1. I followed along with the video in my workspace and did fine. But in the challenge they use <body> tags which weren't in the video at all! Where do I use the <style> tags combined with the <body> tags? Thanks!

Can you refer to the markdown cheat sheet and list the tags that are in question

1 Answer

Adam Duffield
Adam Duffield
30,494 Points

Hey Brianna,

Try opening a discussion in a new tab and copy and paste your current code over and what you have to do to get a fast and accurate helpful answer in future. :)

Judging by the track your on this may help...

If its part 1/3 try just typing tags above your keep your moves very simple and specific to what the code asks you to do.

If its part 2/3 then simple write h1{} inside your tags.

If its part 3/3 then type color:green; inside your {}. The final result should look like this...

< style >h1 {color:green;}< / style > < h1 > Some text < / h1 >

Regards,

Adam

Don't forget < style > tags including your < / style >closing tag, it keeps taking them out when i post on here.