Home  >  Article  >  Web Front-end  >  Is the s tag new to HTML5?

Is the s tag new to HTML5?

WBOY
WBOYOriginal
2021-12-21 14:21:582434browse

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.

Is the s tag new to HTML5?

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:

Is the s tag new to HTML5?

##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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn