Result Size: 625 x 664
x
 
<!DOCTYPE html>
<html>
<head>
<style>
a:active {
  background-color: yellow;
}
</style>
</head>
<body>
<h1>Demo of the :active selector</h1>
<a href="https://www.w3schools.com">W3schools.com</a><br>
<a href="https://www.w3schools.com/html/">HTML</a><br>
<a href="https://www.w3schools.com/css/">CSS</a>
<p><b>Note:</b> The :active selector styles the active link.</p>
</body>
</html>