Text Content

HTML <s> element

Marks content that is no longer accurate or relevant. Use del for an actual document edit or deletion. Use s for an outdated price or superseded statement still shown for context. For a documented edit use del, which can record the edit's date and source. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<s>Outdated text</s>

Return Value

HTMLElement

Content model: Phrasing content, with element-specific restrictions.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <p>      <s>Sold out</s>      Back in stock.    </p>  </body></html>
HTML Reference