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 How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

Kody Dibble
Kody Dibble
2,554 Points

Where do I put the h1 tag?

In stage 5 where do I put the h1 tag?

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1 { color: afff;
}

3 Answers

You can put your h1 tag anywhere you want. CSS is just a style sheet and so the order of elements doesn't matter.

You have an error in your h1 tag however - color: afff; is missing the #-sign. When you use colors in CSS you can either have spell out some standard colors, such as "white", "black", "red" and so on. But when you want to create different shades of a color you need to enter a hexadecimal value. They always start with the hash-sign followed by a hex-value.

While #afff will generate a color - I don't think you'll get the one you're looking for. If you want to set it to white, it's #fff.

If you ever find yourself looking for that special shade of a color, but don't know what hex value it has, then I'd point you to http://www.computerhope.com/htmcolor.htm. They have a list of many colors in pretty much any shade you want. I use that site myself, I think it's just great!

Good luck!

Dom Smith
Dom Smith
3,091 Points

the syntax looks correct apart from the "#" at the beginning of the colour attribute, also add two ff to which you already have because at the moment it isnt classed as a colour

try color: #afffff; that will give you a light blue colour, which I'm assuming you were looking for :)

Kody Dibble
Kody Dibble
2,554 Points

Thank you guys a lot! blessings of peace and Love <3