Tag <s> HTML Reference



Example

Strikethrough text can be marked up as follows:

<p>Learn from yesterday, <s>live for today,</s> hope for tomorrow. </p>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

1. Definition and Usage

The <s> element are deprecated in HTML 4.01.

The <s> tag define strikethrough text.


2. Tips and Notes

Tip: Use the <del> element instead!


3. Standard Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

The <s> tag support the following standard attributes:

AttributeValueDescriptionDTD
classclassnameSpecifies a classname for an elementTF
dirrtl
ltr
Specifies the text direction for the content in an elementTF
ididSpecifies a unique id for an elementTF
langlanguage_codeSpecifies a language code for the content in an elementTF
stylestyle_definitionSpecifies an inline style for an elementTF
titletextSpecifies extra information about an elementTF

4. Event Attributes

The <s> tag support the following event attributes:

AttributeValueDescriptionDTD
onclickscriptScript to be run on a mouse clickTF
ondblclickscriptScript to be run on a mouse double-clickTF
onmousedownscriptScript to be run when mouse button is pressedTF
onmousemovescriptScript to be run when mouse pointer movesTF
onmouseoutscriptScript to be run when mouse pointer moves out of an elementTF
onmouseoverscriptScript to be run when mouse pointer moves over an elementTF
onmouseupscriptScript to be run when mouse button is releasedTF
onkeydownscriptScript to be run when a key is pressedTF
onkeypressscriptScript to be run when a key is pressed and releasedTF
onkeyupscriptScript to be run when a key is releasedTF

Relative articles

Line Icons

Bootstrap 3 Navbar