CSS :hover Selector

HTML Code

<!DOCTYPE html>
<html>
<head>
<style>
a:hover {
background-color: yellow;
}
</style>
</head>
<body>

<a href=”http://rinectar.com/”>rinectar.com</a>
<a href=”https://www.wikipedia.org”>wikipedia.org</a>

<p><b>Note:</b> The :hover selector style links on mouse-over.</p>

</body>
</html>

HTML View

rinectar.com wikipedia.org

Note: The :hover selector style links on mouse-over.

If you want to join my online or offline graphic designing course than just call me - 9334029817

Related Posts

Leave a Reply