ใช้ CSS :active ตัวเลือกเพื่อจัดรูปแบบลิงก์ที่ใช้งานอยู่ คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน :active selector -
ตัวอย่าง
<!DOCTYPE html> <html> <head> <style> a:active { background-color: orange; } </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>