The <s> element marks text that is no longer relevant or no longer accurate. Browsers usually draw a strikethrough (a line through the text).
Typical uses: sold-out offers, superseded prices, or statements that are outdated but still shown for context. For document edits (removed vs added text), use <del> and <ins> instead (MDN).
Baseline · Widely available.
Not deprecated. Core support has been stable across browsers since about July 2015 (and earlier in practice).
Not for track-changes edits.
Do not use <s> to mean “this was deleted from the document.” Prefer <del> / <ins> for revision markup.
Obsolete sibling: <strike>.
Do not use <strike> in new HTML. Use <s> for outdated content (or CSS text-decoration for pure looks).
Syntax
HTML Syntax
syntax.html
<s>outdated text</s>
Both start and end tags are required. Content is phrasing content. Parent must accept phrasing content.
Reference
Attributes
<s> has no element-specific attributes — only globals. Choose the right element for the meaning:
Use
Description
Try it
<s>
Content is no longer accurate or relevant (still shown for context)
Use del/ins for revisions; reserve s for outdated facts.
How It Works
Wrap removed wording in <del>.
Wrap added wording in <ins>.
Do not use <s> here — this is an edit, not “no longer accurate content.”
Optional:del / ins can take datetime and cite for edit metadata.
Example 4 — Visual-Only Strikethrough (No s)
If the line is only decoration and the text is still accurate, use CSS — not s.
HTML
<style>
.strike-look {
text-decoration: line-through;
}
</style>
<p>
<span class="strike-look">Decorative sample</span>
— text is still accurate; no <code>s</code> needed.
</p>
The s element marks text that is no longer relevant or no longer accurate. Browsers usually draw a strikethrough (line through the text).
No. For insertions and deletions in a document (track-changes style), use ins and del. Use s only for content that is outdated or superseded, not for edit history.
Both often look similar (strikethrough). del means removed content in an edit; s means the statement is no longer true or useful. Prefer del/ins for revisions.
Visually similar, but strike is obsolete. Use s in modern HTML. Do not author new strike markup.
No. It supports only global attributes such as class, id, and title. Style the look with CSS if you need custom colors or thickness.
No. s is Baseline and widely available. Its meaning is semantic (outdated content), not a pure presentational strike like the obsolete strike element.