Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p { font-size: 20px; } /* unvisited link */ a:link { color: #cccccc; } /* visited link */ a:visited { color: #1c87c9; } /* mouse over link */ a:hover { color: #8ebf42; } /* selected link */ a:active { color: #666666; } </style> </head> <body> <h2>:visited selector example</h2> <p>Visit our <a href="https://www.w3docs.com/">website</a>. </p> </body> </html>