Lessons Community Resources Tools

Hover

Syntax: A : hover {value}
Possible Values: any font manipulating declaration
Initial Value: Not defined
Applies to: anchor element
Inherited: Yes

The hover pseudo-class is used to add effects to a link on mouse over (e.g. mouse when moved over link)

Example

a:hover {color:black; background-color:red;}