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 trialChristina Nairn
Courses Plus Student 5,239 PointsCannot get the CSS first level headline answer correct.
QUESTION: In your CSS, apply your font to the first level headline using font-family. Include a sans-serif fallback.
ANSWER h1 { font-family: 'Roboto'; sans-serif; }
What am I doing wrong?
3 Answers
Sean T. Unwin
28,690 PointsYou have a semi-colon between 'Roboto'
and sans-serif
. It needs to be a comma.
Christina Nairn
Courses Plus Student 5,239 PointsThank you so much!
MUZ140139 Samantha Mashanda
6,236 Pointsh1 { font-family: lato', sans-serif; }
Sean T. Unwin
28,690 PointsYou have a single quote at the end of lato
, but not at the beginning.
ProTip: You don't need to use quotes at all for single word fonts.
MUZ140139 Samantha Mashanda
6,236 Pointsi am also having a challenge on that one
Hugo Paz
15,622 PointsHugo Paz
15,622 PointsTry
You separate fonts with commas.