Name
:active — IE4 Y/Y | IE5 Y/Y | NN4 N/N | Op3 N/-
Synopsis
This pseudo-class applies to hyperlinks, but not named anchors. It sets the styles to be used at the moment a hyperlink is being selected (e.g., clicked).
Example
A:active {color: red; background: yellow;}
Values
n/a
Default
n/a
Inherited
yes
Applies to
anchor elements with an HREF
attribute
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.