The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it. On systems with more than one mouse button, :active applies only to the primary or primary activation button (typically the "left" mouse button), and any aliases thereof.

:active {
    css declarations;
.intro:active, a:active {
   color: #3366ff;
   background: #ffff99;

Click the button below to experiment with this selector.

Give it a Try!

2.0Firefox 7.0Explorer 4.0Chrome 3.1Safari 9.6Opera