a:visited font-weight: bold; text-decoration: line-through; color: black; : a.visited « Tags « HTML / CSS

HTML / CSS » Tags » a.visited 
a:visited font-weight: bold; text-decoration: line-through; color: black;
     

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
a:link {
 font-weight: bold;
 text-decoration: none;
 color: red;
}
a:visited {
 font-weight: bold;
 text-decoration: line-through;  
 color: black;
}
</style>
</head>
<body>
  <p>Consectetuer adipiscing elit: 
    
    <ul>
    <li><a href=" ">Vivamus purus enim</a></li> 
    <li><a href=" ">Sollicitudin vitae</a></li>
    <li><a href=" ">Tincidunt sit amet</a></li> 
    <li><a href=" ">Pretium vel, libero</a></li> 
    </ul>
<p>Sed sed nisi. Morbi gravida, odio at aliquam lobortis, urna massa vehicula mi, et posuere tortor elit eget est. Nulla ligula. Etiam pulvinar. Quisque ante quam, ultricies quis, rutrum dignissim, fermentum a, est. Nulla felis dolor, tempor non, posuere ut, ornare ac, eros. Cras in metus. Sed rutrum lectus ut nibh. Pellentesque ipsum.</p>
  
</body>
</html>

   
    
    
    
    
  
Related examples in the same category
1.a:visited color:#006699;
2.a:visited text-decoration:none;}
3.text-decoration: underline for visited anchor
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.