Menu
×
×
Correct!
Exercise:Set the background color for visited and unvisited links to "lightblue", and the background color for the hover and active link states to "yellow". Hint: Use the :link, :visited, :hover, and :active pseudo-classes. |
Edit This Code:
x
<html> <head> <style> /* unvisited link */ a { background-color: lightblue; } /* visited link */ a { background-color: lightblue; } /* mouse over link */ a { background-color: yellow; } /* selected link */ a { background-color: yellow; } </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> Result:
|
Correct Code:
xxxxxxxxxx Result:
|