CSS Selector :hover
Description
The :hover
selector matches any mouse-hover-over elements.
Example
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
<style type="text/css">
:hover { <!--from w w w . j a v a 2s . com-->
border: thin black solid;
padding: 4px;
}
</style>
</head>
<body>
<a href="http://java2s.com">Visit the java2s.com</a>
<p>I like <span>HTML</span> and CSS.</p>
<a href="http://w3c.org">Visit the W3C website</a>
</body>
</html>
The code above generates the following result.