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 trialMuhammad Hassan
76 Pointswhy at home to body tag?
Why is home tag linked to body, as body is a generic tag encapsulating whole displayed body on the page, can we say it is equal to "right to top"?
1 Answer
Alexander Acker
18,123 PointsI believe the scroll link change effect takes place when the scroll hits the very top of of the element thus on every page load the viewport starts at the very top of the body thus identifying it as home is relevant here to the effect that we would need.
Annet de Boer
900 PointsAnnet de Boer
900 PointsI don't understand your question.. .maybe you can elaborate a bit more or use some examples.