From Web Education Community Group
< CSS‎ | Selectors
Revision as of 18:51, 21 November 2011 by Rworth (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pseudo-classes :active

The :active pseudo-class applies while an element is being activated by the user.


a:hover{ properties }

Point, Note

  • 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.



 a:link, a:visited{
   color: red;
   color: green;
   color: blue;


  <p><a href="http://www.w3.org/">W3C</a> is an international community</p>

Css3 selectors dyn active.png

CSS defines the :active pseudo-class in The user action pseudo-classes :hover, :active, and :focus.