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 trialAudra Ogilvy
3,142 PointsWhy set the <a> tag to the same green as the header background?
Is that just for future links in the body?
2 Answers
Patrik Horváth
11,110 Pointsanswere is simple because if you make
<a href=""> <header></header> </a>
its will works but your code is INVALID HTML / HTML5 code
and he want make whole header as A tag so with href check standards in Mozila MDN : https://developer.mozilla.org/en-US/docs/Web/HTML
Audra Ogilvy
3,142 PointsThanks Patrik! My question, though, was about the color. I didn't know why he colored the font within his anchor tags the same color as his header color (making it so you couldn't see the links) ... but I realized it was a dumb question because he wasn't specifically styling the header; he just wanted all his link fonts to be that color throughout the site. But thanks for replying.