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

Design Web Typography How to Choose and Use Webfonts Webfont Hosting Services: Review

"Sans" a generic font-family property?

On the question "You’re able to end a font stack any of with these terms except" the following possible answers were offered: "Serif", "Sans", "Fancy", "Monospace". I think there are two errors in this question. 1. "any of with" should be "with any of". 2. My interpretation is that this question asks for generic font-families, and according to my research "Sans" and "Fancy" are both wrong, and "Sans-serif" and "Fantasy" would have been correct possible answers. I had to pick one of the wrong answers, and picked "Sans", which was graded as wrong. Is it really, and if so why?

I agree! The question is worded terribly!

"Sans" and "Fancy" are not valid generic font families.

2 Answers

Steven Parker
Steven Parker
229,732 Points

The forum is a great place to get help from other students, but may not be the most expedient (or even certain) way to contact the staff.

The recommended way to report bugs is described on the Support page.

FYI: according to the MDN page, the generic font family keywords are: serif, sans-serif, monospace, cursive, fantasy, and system-ui.

Phil, thanks for your confirmation. Steven, as a student I was hesitant to immediately claim a bug, but given Phil's confirmation and your implicit confirmation I will follow up on your suggestion, and be less hesitant in the future. Thanks.