From W3C Wiki
< CSS‎ | Selectors
Revision as of 20:47, 26 September 2011 by Hiroki (Talk | contribs)

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.