How do I scrollTo a specific section in HTML?
By using an href attribute inside an anchor tag you can scroll the page to a specific element using a # in front of the elements id name.
How do I scrollTo a specific element?
The scroll method: The scroll() is used to scroll to the specified element in the browser. Syntax: Here, x-cord specifies the x-coordinate and y-cord specifies the y-coordinate. Example: Using scroll() to scroll to an element.