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

CSS Bootstrap 4 Basics (Retired) Using Bootstrap Components Using ScrollSpy to Highlight Nav Links

why 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"?

Annet de Boer
Annet de Boer
900 Points

I don't understand your question.. .maybe you can elaborate a bit more or use some examples.

1 Answer

Alexander Acker
Alexander Acker
18,123 Points

I 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.