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

Why did Nick placed the body in the /GENERAL/ section if he only want to change the font-family? Why not keep it in /HEA

Why did Nick placed the body tag in the /GENERAL/ section to set the font-family? Why not keep it in /HEADING/ together with h1 & h2 where in this section their font-family is also selected? Would it not be more organized this way?

2 Answers

Steven Parker
Steven Parker
231,236 Points

I think you've explained it yourself when you said "is also". Settings organized under "Heading" would normally be used only for the heading, but a setting that is (or might be) used in more than one area would go under "General".

Got it. Thank you.

Brendon Butler
Brendon Butler
4,254 Points

He wanted to set a general/page-default font. So I feel it would be a better fit for the "general" section. It really doesnt matter where you put it, as long as it makes sense and is organized for yourself. Or if you're working on a team, you should follow whatever standards they're using.

Thank you. Now it's clear.