text-decoration: underline;text-decoration: overline;text-decoration: line-through;text-decoration: blink; : text decoration « CSS « HTML / CSS






text-decoration: underline;text-decoration: overline;text-decoration: line-through;text-decoration: blink;

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type='text/css'>
      p#underline {
          text-decoration: underline;
      }
      p#overline {
          text-decoration: overline;
      }
      p#line-through {
          text-decoration: line-through;
      }
      p#blink {
          text-decoration: blink;
      }
        </style>
    </head>
    <body>
    <p id='underline'>
        This text is underlined.
    </p>
    <p id='overline'>
        This text is overlined.
    </p>
    <p id='line-through'>
        This text has a line through it.
    </p>
    <p id='blink'>
        This text blinks in those browsers that support it.
    </p>
    </body>
</html>

   
    
  








Related examples in the same category

1.'text-decoration' Example
2.text-decoration: underline overline
3.text-decoration: underline
4.text-decoration: overline
5.text-decoration: line-through
6.text-decoration: underline overline line-through
7.text-decoration: underline;
8.text-decoration: overline;
9.text-decoration: line-through;
10.text-decoration: blink;
11.text-decoration: underline overline;
12.text-decoration: underline line-through;
13.text-decoration: overline line-through;
14.text-decoration: underline overline line-through blink;
15.text-decoration: none for visited anchor
16.text-decoration: none for hover anchor
17.text-decoration: none; for anchor
18.text-decoration:underline;overline;line-through;blink;
19.text-decoration:underline;overline;line-through;blink;}
20.Various text decorations
21.text-decoration: underline overline line-through blink
22.This text is underlined and overlined
23.This text is underlined, overlined, striken and blinking.
24.text-decoration:underline line-through
25.text-decoration:overline line-through