Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
216,045 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,242 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.