Strikethrough text with CSS


Use the text-decoration property to strikethrough text with CSS. You can try to run the following code to underline text:

<html>
   <head>
   </head>
   <body>
      <p style = "text-decoration:line-through;">
         This will be striked through.
      </p>
   </body>
</html>

Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician

Updated on: 31-Jan-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements