This article mainly introduces to you the specific use ofHTML strikethroughtags.
In the previous article [How to set the strikethrough style with css?], we have introduced to you the specific implementation method of realizing the strikethrough style through CSS. Friends in need can go and refer to it.
Let’s use a simple code example to introduce how to use thetaginHTML to add a strikethrough in the middle of text!
html strikethrough codeThe example is as follows:
The code implementation effect is as follows:
We can already see from the picture that this text has been struck through. Here we mainly use thetagin html.
As in the above code, just write the text that needs to be strikethrough directly in thetag!
Summary:
The tag is a definable strikethrough text definition, that is, the modified text content will be strikethrough (a line in the middle of the text).
Thetag is the abbreviated version of the
tag
, which is supported by both Netscape and Internet Explorer.
Note:
In HTML 4.01, thetag is deprecated.
In XHTML 1.0 Strict DTD, thetag is not supported.
Suggestion:
Please useinstead!
In the follow-up article [Detailed explanation of adding strikethrough to HTML texttag], we will introduce how to use thetag, please Stay tuned everyone!
This article is an introduction to the implementation method of HTML strikethrough. It is very easy to understand. I hope it will be helpful to friends in need!
The above is the detailed content of How to add strikethrough to text in HTML? (code example). For more information, please follow other related articles on the PHP Chinese website!