CSS :active Selector

HTML Code

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

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

<p><b>Note:</b> The :active selector styles the active link.</p>

</body>
</html>

HTML View

w3schools.com wikipedia.org

Note: The :active selector styles the active link.

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

Related Posts

Leave a Reply