Menu
×
×
Correct!
Exercise:Set the color for unvisited links to "red", and the color for visited links "blue". Hint: The four links states are: a:link, a:visited, a:hover, a:active |
Edit This Code:
x
<html> <head> <style> /* mouse over link */ a:hover { color: black; } /* selected link */ a:active { color: green; } </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p><a href="../index.html">W3Schools.com</a></p> </body> <!-- Mirrored from www.w3schools.com/css/exercise.asp?filename=exercise_link2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:16:53 GMT --> </html> Result:
|
Correct Code:
xxxxxxxxxx Result:
|