Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> a:active { background-color: yellow; } </style> </head> <body> <a href="../index.html">w3schools.com</a> <a href="http://www.wikipedia.org/">wikipedia.org</a> <p><b>Note:</b> The :active selector styles the active link.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_active by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:13:54 GMT --> </html>
Result:
Try it Yourself - © w3schools.com