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

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

Pseudo-classes :hover

The :hover pseudo-class applies while the user designates an element with a pointing device, but does not necessarily activate it.


selector:hover{ properties }

Point, Note

  • There may be document language or implementation specific limits on which elements can become :active or acquire :focus.



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


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

Css3 selectors dyn hover.png

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