•<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="lib/w3.css">
<body>
<div class="w3-container">
<h2>Hoverable Links</h2>
<p>When you mouse over the buttons, their background color will change to grey.</p>
<p>If you want a different hover color, use any of the <strong>w3-hover-color</strong> classes.</p>
<p>Hover background color:</p>
<div class="w3-bar w3-border w3-light-grey">
<a class="w3-bar-item w3-button" href="#">Default</a>
<a class="w3-bar-item w3-button w3-hover-green" href="#">Link 1</a>
<a class="w3-bar-item w3-button w3-hover-blue" href="#">Link 2</a>
<a class="w3-bar-item w3-button w3-hover-teal" href="#">Link 3</a>
</div>
<p>Hover text color (turn off the default hover effect with the <strong>w3-hover-none</strong> class:</p>
<div class="w3-bar w3-border w3-black">
<a class="w3-bar-item w3-button" href="#">Default</a>
<a class="w3-bar-item w3-button w3-hover-none w3-text-grey w3-hover-text-white" href="#">Link 1</a>
<a class="w3-bar-item w3-button w3-hover-none w3-text-grey w3-hover-text-white" href="#">Link 2</a>
<a class="w3-bar-item w3-button w3-hover-none w3-text-grey w3-hover-text-white" href="#">Link 3</a>
</div>
</div>
</body>
</html>