HTML CSS examples for CSS Selector:visited
The :visited selector selects visited links.
Allowed styles are:
Select unvisited, visited, hover, and active links:
<!DOCTYPE html> <html> <head> <style> /* unvisited link */ a:link { color: green; } /* visited link */ a:visited {<!-- w w w.j a v a 2 s. c o m--> color: green; } /* mouse over link */ a:hover { color: red; } /* selected link */ a:active { color: yellow; } </style> </head> <body> <p>Mouse over and click the link: <a href="https://www.java2s.com">java2s.com</a></p> </body> </html>