'text-decoration' Example : text decoration « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'text-decoration' Example

    
<html>
<body>
<a href="http://www.java2s.com" style="text-decoration: none">
Eliminate the standard underline.
</a>
<hr>

<p id="myT">Text sample.</p>

<input type="button" 
       value="decoration:lineThrough" 
       onclick="myT.style.textDecoration = 'line-through'">

<input type="button" 
       value="decoration:overline" 
       onclick="myT.style.textDecoration = 'overline'">

<input type="button" 
       value="decoration:underline" 
       onclick="myT.style.textDecoration = 'underline'">

<input type="button" 
       value="decoration:none" 
       onclick="myT.style.textDecoration = 'none'">

</body>
</html>

    
      
      








Related examples in the same category

1.'text-decoration' Syntax and Note
2.'text-decoration' Possible Values
3.'text-decoration' is applied to