The
s tag is not new to html5; in html4.01, the s tag was used to add strikethrough to text and has been abandoned. However, the s tag was redefined in html5 and is used to define those that are not Correct text.
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer. Is the
s tag a new addition to html5?
s tag is not a new addition to html5.
tags identify text that is incorrect, inaccurate, or useless. The tag should not be used to define replaced or deleted text.
In HTML 4.01, the element has been deprecated and was used to strikethrough text. HTML5 redefined the element, which is now used to define incorrect text.
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <p><s>My car is blue.</s></p> <p>My new car is silver.</p> </body> </html>
Output result:
##Recommended tutorial: "html video tutorial 》
The above is the detailed content of Is the s tag new to HTML5?. For more information, please follow other related articles on the PHP Chinese website!