+ 5
How to highlight active section in navbar?
How to highlight active section menu item on scrolling (in navbar) in html?
2 Answers
+ 3
By pure js
https://www.w3schools.com/howto/howto_js_active_element.asp
By bootstrap
https://mdbootstrap.com/snippets/jquery/tonyo/716383#scrollhome
You can also do this easily with tailwind and materialize
+ 3
Thank you so much AKM!!! Actually I only know JavaScript đ