HTML <s> tag

example

Strikethrough text can be marked like this:

In HTML 5, the <s>still supported</s> tag is no longer supported.

browser support

element Chrome IE Firefox Safari Opera
<s> Yes Yes Yes Yes Yes

All browsers support the <s> tag.

Definition and usage

The <s> tag defines strikethrough text definitions.

The <s> tag is  an abbreviated version of the <strike> tag , which is supported by both Netscape and Internet Explorer. But in HTML 4 and XHTML it's deprecated, meaning not used anymore; sooner or later it will go away.

Differences between HTML and XHTML

In HTML 4.01, the <s> tag is deprecated.

In the XHTML 1.0 Strict DTD, the <s> tag is not supported.

Tips and Notes:

Note: Please use <del> instead!

global attributes

The <s> tag supports  global attributes in HTML .

event properties

The <s> tag supports  event attributes in HTML .

Guess you like

Origin blog.csdn.net/lijiming2185/article/details/132080874