Display strikethrough text in HTML



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>

Advertisements