How to mark strikethrough text in HTML?

HTMLWeb DevelopmentFront End Technology

To mark strikethrough text in HTML, use the <strike>…</strike> tag. It renders a strikethrough text. HTML deprecated this tag and it shouldn’t be used in HTML5. As an alternative, use the CSS text-decoration property.

To use the CSS property, use the style attribute. The style attribute specifies an inline style for an element. The attribute can be used with the HTML <p> tag. Just keep in mind, HTML5 does not support the <strike> tag, so the CSS style should be used.



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

Live Demo

<!DOCTYPE html>
<title>HTML Strikethrough text</title>

<p style="text-decoration: line-through;">
Strikethrough text
Published on 18-Jan-2018 15:21:54