how to scroll smoothly when anchor tag is clicked using css code example Example: how to smooth scroll in javascript window.scrollTo({ top: 900, behavior: 'smooth' })