Download our Free HTML Cheat Sheet - Quick Reference for Beginners

Mouseover links code generator

Mouseover link effects are those jazzy little links you see that aren't a horrible colour and aren't underlined. However, when you pass your mouse over them...they change! They can become bold, have an underline or change to whatever colour you like.

Which links to apply style to:


'Normal' links are those that you haven't visited before, and are not in the process of clicking or hovering over.
Link colour:
Font size:
Font family:

Font style:
Cursor:
Text decoration line:
Text decoration color:
Text decoration style:
Text variant:
Text transform:
'Visited' links are those that you have visited before (and your browser 'remembers').
Link colour:
Font size:
Font family:

Font style:
Cursor:
Text decoration line:
Text decoration color:
Text decoration style:
Text variant:
Text transform:
'Active' links are those that you are in the process of clicking.
Link colour:
Font size:
Font family:

Font style:
Cursor:
Text decoration line:
Text decoration color:
Text decoration style:
Text variant:
Text transform:
'Hover' links are those that you are holding your mouse over.
Link colour:
Font size:
Font family:

Font style:
Cursor:
Text decoration line:
Text decoration color:
Text decoration style:
Text variant:
Text transform:

Code options

Choose how you want the code created
CSS layout:

Frequently asked questions

What's the difference between "hover" and "active" link states?

"Hover" applies while the mouse is resting over the link, before it's clicked. "Active" applies only for the brief moment the mouse button is actually held down on the link. Most sites only bother styling hover, but active can add a nice "pressed" feel.

Why does my browser show visited links differently even without this code?

Browsers apply a default visited-link colour (usually purple) automatically, based on your browsing history. This tool lets you override that with your own colour and styling so visited links match your site's design instead.

Should CSS go in the page head or an external stylesheet?

An external stylesheet is better if you're styling links the same way across many pages - it's cached by the browser and easier to maintain in one place. Head-of-page CSS is fine for a one-off page or when you can't edit a shared stylesheet.

Can I style just the links inside one part of my page?

Yes - choose "Apply to all links within a certain container" and enter that container's CSS class or ID (e.g. #footer or .sidebar-nav). Only links inside that element will get the new styling; every other link on the page is left alone.