หากต้องการจัดรูปแบบลิงก์ที่ใช้งานอยู่ ให้ใช้ CSS :active selector คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อจัดรูปแบบลิงก์ที่ใช้งานอยู่
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
a:active {
background-color: green;
}
</style>
</head>
<body>
<a href = "https://qries.com">Welcome to Qries</a>
<p>Click on the above link to see the effect.</p>
</body>
</html>