👩💻 Join our community of thousands of amazing developers!
Perhaps the easiest way to offer that to the user is a link that targets an ID on the <html> element. So like... <html id="top"> <body> <!-- the entire document --> <a href="#top">Jump to top of page</a> </body> </html> But we've got a few options here. If you want it to smooth scroll up to the top, you can do that in CSS if you like: html { scroll-behavior: smooth; } Note that placing a property on the HTML element … Read article The post Need to scroll to the top of the page...