To mark strikethrough text in HTML, use the
…
tag. It will render a strikethrough text. This tag has been deprecated by HTML and should not be used in HTML5. As an alternative, you can use the CSS text-decoration property.
To use CSS properties, use the style attribute. The style attribute specifies inline styles for the element. This attribute can be used with the HTML
tag. Keep in mind that HTML5 does not support the
tag, so CSS styling should be used.
You can try running the following code to mark strikethrough text in HTML
The above is the detailed content of How to mark strikethrough text in HTML?. For more information, please follow other related articles on the PHP Chinese website!