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 Use Color in CSS

Why do we use h1, h2 instead of the logo id that was created last lesson?

Last lesson we created a logo id within the anchor element that wraps the h1 and h2 element, why not just declare that logo id as white, instead of creating two new selectors h1 and h2?

1 Answer

Bryce Santos
Bryce Santos
11,157 Points

It might be to target ALL h1 and h2s and not just within that element. I can't really think of any other reason otherwise.