html link to scroll code example
Example 1: scroll to a section of your page html
html {
scroll-behavior: smooth;
}
Example 2: link that scrolls down the page
<a href="#google"></a>
<div id="google"></div>
html {
scroll-behavior: smooth;
}
<a href="#google"></a>
<div id="google"></div>