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

HTML Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Daniel Danforth
Daniel Danforth
1,757 Points

how do i set a color to an h1 element??

this quiz is frustrating...I'm a total noob, with no idea where to find the resources to answer basic questions of code format, and nothing seems to be working, with no apparent recourse to remedy my effed up attempts...

Daniel Danforth
Daniel Danforth
1,757 Points

i got it...from someone else's answer. why do i not seem able to access these questions/answers before being prompted to ask it in duplicate myself?? am i not following an optimal protocol for such inquiries??

Neil Porteous
Neil Porteous
12,900 Points

HAHA. I felt exactly the same, until I did a web search 'how do I set a color to an h1 element' which led me to your helpful post and Alejandro's very helpful reply. Got it now. I think the completely blank CSS file threw me, as did the fact that the H1 tag in the challenge had no attributes in contrast to the tags in the video. I was putting .s and "s all over the place.

2 Answers

Alejandro Mesa
Alejandro Mesa
9,813 Points
/*Just an example*/
h1{
color: black;
background-color:white;
}
Alejandro Mesa
Alejandro Mesa
9,813 Points

No problem. Happy coding!