Skip to main content

The <s> Element

As defined in the HTML Living Standard, the <s> element represents contents that are no longer accurate or no longer relevant.

Visual Example:

Limited Edition SimpleAccess Sticker Pack: $25.00 Now $15.00!

<p>Buy our <s>obsolete</s> new product!</p> View HTML Living Standard: The s element

S vs. DEL vs. CSS

Because these all result in a visual strike-through line, it is vital to choose the correct method based on meaning:

WCAG Requirement: Info and Relationships

Success Criterion 1.3.1 (Level A): Information, structure, and relationships conveyed through presentation can be programmatically determined.

The Accessibility Gap: Most screen readers do not announce the presence of the <s> element by default. A blind user might hear "Price: twenty-five dollars fifteen dollars," which is highly confusing.

Solution: To satisfy SC 1.3.1, you should supplement the <s> tag with a hidden text alternative that explicitly states the status.

<p> Price: <span class="sr-only">Was: </span><s>$25</s> <span class="sr-only">Now: </span>$15 </p> Understand SC 1.3.1: Info and Relationships

Usage Warnings

A11y Tip: High Contrast Mode

In some high-contrast modes, the strike-through line may disappear. Consider adding a secondary indicator (like a specific color or parenthetical text) to ensure the "no longer relevant" status is perceivable in all environments.