There are numerous ways in which one can add active class to a link. One way is to use if statements to do so. Modern JS frameworks such as Angular, React and VueJS support route-link designed to manage routes in the application. The same effect can also be achieved with jQuery. It is certainly a