a {text-decoration: none;} : a.text « Tags « HTML / CSS






a {text-decoration: none;}

     

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Link Style Changes</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

  <style type="text/css">
  a {text-decoration: none;}
  a:hover {color: red; text-decoration: underline;}
  </style>

</head>
<body>

<div class="head">Link Style Changes</div>
<div class="content">
  <a href="#">Link to this page</a>
  <a href="http://www.yahoo.com">Test Link to Yahoo!</a>
</div>

</body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.Anchor text-decoration: none;