From Web Education Community Group
< CSS‎ | Selectors
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.