HTML and CSS Reference
In-Depth Information
Name
:active
Applies to:
An element that is being activated
Description:
This applies to an element during the period in which it is being activated. The most common
example is clicking on a hyperlink in an HTML document: while the mouse button is being
held down, the link is active. There are other ways to activate elements, and other elements
can in theory be activated, although CSS doesn't define them.
Examples:
a:active {color: red;}
*:active {background: blue;}
Search WWH ::




Custom Search