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: #ccc; } /* visited link */ a:visited { color: #1c87c9; } /* mouse over link */ a:hover { color: #8ebf42; } /* selected link */ a:active { color: #666; } </style> </head> <body> <h2>:link selector example</h2> <p>Visit our <a href="https://www.w3docs.com/">website</a>. </p> </body> </html>