Changing the link color when the visitor hovers over a link helps indicate what is clickable on your web page or blog. Make your pages link color change, implement the below code into your
portion of your HTML or in your CSS code for your web page.The example below is how to change the link properties of your web page in CSS. If you want to change the link color when moving the mouse over a link, you only need the A:hover line.
hover - The hover option is the color that the text changes to when the mouse is over the link. In this example, the link changes to a blue color when a mouse cursor is hovering over a link.
This CSS code can also be inserted in an external CSS file to load on every web page.
Related information
- See our HTML color codes page for a full listing of colors and their associated color codes.
- See the onMouse page for further examples of how to change images when moving a mouse over the image.
- HTML and web design help and support.
- CSS and HTML color help and support.