span text-decoration: line-through; : span text « Tags « HTML / CSS






span text-decoration: line-through;

     
<!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' xml:lang='en'>
    <head>
        <title>text-decoration</title>
<style type='text/css'>
body {
    font: 14px sans-serif;
}
p {
    padding: 5px 25px;
    background: lightblue;
    border: 1px solid black;
}
span.underline {
    text-decoration: underline;
}
span.overline {
    text-decoration: overline;
}
span.line-through {
    text-decoration: line-through;
}
span.blink {
    text-decoration: blink;
}
span.underover {
    text-decoration: underline overline;
}
span.underthrough {
    text-decoration: underline line-through;
}
span.overthrough {
    text-decoration: overline line-through;
}
span.example {
    background: mistyrose;
}
</style>


    </head>
    <body>
        <h4>CSS's text-decoration Property</h4>
        <p>
            <span class='underline example'>underline</span>,
            <span class='overline example'>overline</span>,
            <span class='line-through example'>line-through</span>,
            <span class='blink example'>blink</span>.  
            <span class='blink example'>blink</span>
        </p>
        <p>
            <span class='underover example'>underline and overline text</span>
            <span class='underthrough example'>underline and line-through text</span>
            <span class='overthrough example'>overline and line-through text</span>
        </p>
    </body>
</html>

   
    
    
    
    
  








Related examples in the same category

1.Span text-transform: uppercase;
2.Span text-align: center;
3.span text-decoration: underline;
4.span text-decoration: overline;
5.span text-decoration: blink;
6.span text-decoration: underline overline;
7.span text-decoration: underline line-through;
8.span text-decoration: overline line-through;
9.span text-transform: lowercase;
10.span text-transform: capitalize;
11.span vertical-align: text-top;
12.span vertical-align: text-bottom;
13.text-indent does not work on inline elements
14.When vertically aligning inline elements,the vertical-align property can be: top, middle, bottom, text-top, text-bottom.
15.Inline vertical-align: text-bottom
16.Inline vertical-align: text-top