How to change the color of focused links with CSS
Using the CSS :focus pseudo class we can change the color of a link.
Whenever the user focuses on the link, the color will change to gold.
<style> a:focus{ color:gold; } </style> <a href="https://www.3schools.in"> Visit 3schools</a>
Share
Save