Description
The :active pseudo-class matches link elements that are in the process of being activated.
This selector has the form:
:active {
declaration block
}
Examples
This example shows how to set the font color of all active HTML links to red.
a:active {
color:red;
}
This example sets specific colors for various link states.
a:link {color:#FF0000}
a:visited {color:#00FF00}
a:hover {color:#FF00FF}
a:active {color:#0000FF}
Browser Support
| Chrome | Firefox | IE | Safari | Opera |
|---|---|---|---|---|
Miscellaneous Information
| Inherited: | Yes |
|---|---|
| Defined In: | CSS1 |
