Style the active link with CSS

To style the active links, use the CSS :active selector. You can try to run the following code to style the active links

Example


   
      
   
   
      Welcome to Qries
      

Click on the above link to see the effect.

   
Updated on: 2026-03-11T22:50:41+05:30

949 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements