Display strikethrough text in HTML

HTMLWeb DevelopmentFront End Technology

The HTML <strike> tag specifies strikethrough text. This tag is deprecated now, use <del> instead. The HTML <del> tag is used for markup of deleted text i.e. strikethrough text.

Example

You can try to run the following code to display strikethrough text in HTML −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML strike Tag</title>
   </head>
   <body>
      The HTML strike tag renders a <del>strike</del> through the middle of the text.
   </body>
</html>
raja
Published on 13-Mar-2018 14:24:55
Advertisements