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 trialNicole Baldauf
1,657 Pointsp { color:#111111 }
Hi there, the task is: style p in black using a hexadecimal code. This is my code: p { color:#111111 }
However, the answer is stated as wrong. Can someone help? Many thanks!
a {
text-decoration: none;
}
h1 {
color:#ffffff
}
h2 {
color:#ffffff
}
p {
color:#111111
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
4 Answers
Alexandra Barnett
Front End Web Development Techdegree Graduate 46,473 PointsHi Nicole!
You're close! The hexadecimal value for black is #000000 rather than #111111. This can also be shortened to #000 as the zeros are repeated:
p {
color: #000;
}
Chris Jardine
13,299 PointsHi Nicole Black in hexadecimal is #000000
p {
color:#000000
}
Robert Lyon
7,551 PointsAs stated above black is #000000. Also, watch out for missing semi-colons (;) at the end of your line of code
Felipe Menezes
1,664 PointsHello!
Black in Hexadecimal is #000000
Keep it up!