CSS Property Value How to - text-decoration: none;








Question

We would like to know how to text-decoration: none;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li {<!-- w w  w.  j  ava 2s .com-->
  color: #ff0000;
  list-style: square;
}

a {
  text-decoration: none;
  color: #00ff00;
}

a:hover {
  background-color: #ddd;
}
</style>
</head>
<body>
  <div class="side-bar">
    <ul>
      <li><a href="#">Foo</a></li>
      <li><a href="#">Bar</a></li>
      <li><a href="#">Lorem ipsum dolor</a></li>
    </ul>
  </div>
</body>
</html>

The code above is rendered as follows: