freeCodeCamp Challenge Guide: Adjust the Hover State of an Anchor Tag

Adjust the Hover State of an Anchor Tag


Problem Explanation

You can use the :hover pseudo-class with the anchor tag to style how a link appears when someone hovers over the link with their mouse or other pointing device.

For example, the following code will change the color of the link to orange when someone hovers over it:

<a href="https://www.freecodecamp.org/">freeCodeCamp</a>
a:hover {
    color: orange;
}
17 Likes