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

Something wrong with my css

i am just starting out with my css course and i am following exactly everything that is shown in the video, but still my css wont work? i am using google chrome as webbrowser when i am previewing the page.

And also my code is red, or some part are red marked in the css file, like body tag and i cant see my text or the h1, everything is orange!

here is the snapshat of my workspace https://w.trhou.se/1tr7g3e5j4

2 Answers

Christhoper Key
PLUS
Christhoper Key
Courses Plus Student 2,061 Points

h1 { font-size:90px; color; firebrick; }

Not color; but color: firebrick;

And you have unclosed style="background-color: orange; in body tag

Hi Arzija,

You made two mistakes.

  1. In line number 16 where you add body tag <body style="background-color; orange;> here you need to add : colon instead of ; semicolon after background-color. please check this example: background-color: orange;
  2. In line number 16 where you add body tag <body style="background-color: orange;> here you didn't close style tag You should write is as this <body style="background-color: orange;">

If you still don't understand please check this link i have done changes for you: https://codepen.io/MakhanSingh/pen/dKebMb