Decorate a text in CSS

JavascriptWeb DevelopmentFront End Scripts

To decorate a text in CSS, use the text-decoration property. The following example demonstrates how to decorate a text. Possible values are none, underline, overline, line-through, blink.

<html>
   <head>
   </head>
   <body>
      <p style = "text-decoration:underline;">
         This will be underlined
      </p>
      <p style = "text-decoration:line-through;">
         This will be striked through.
      </p>
      <p style = "text-decoration:overline;">
         This will have a over line.
      </p>
      <p style = "text-decoration:blink;">
         This text will have blinking effect
      </p>
   </body>
</html>
raja
Published on 13-Apr-2018 15:55:23
Advertisements