# `<s>`

> The `<s>` HTML element represents text that is no longer accurate or relevant.

## What is the difference between s and del in HTML?

The element that represents text that is no longer accurate or relevant, usually shown with a strikethrough, like an old price. For removed text in a document edit, `<del>` is used instead.

- Topic: Formatting
- Type: tag
- Browser support: Chrome 1+, Chrome Android 18+, Edge 12+, Firefox 1+, Firefox Android 4+, Safari 4+, Safari iOS 3.2+

## Example

Wrong:

```html
<p>
  <span style="text-decoration: line-through">$40</span> $25
</p>
```

Right:

```html
<p>
  Was <s>$40</s>, now $25
</p>
```

`<s>` marks the old price as no longer accurate, and the words 'was' and 'now' keep the meaning without the style.

## Common mistakes

- Expecting screen readers to announce the strikethrough, which most do not by default.

## Key points

- `<s>` marks content that is no longer accurate, like an old price.
- Edits to a document use `<del>` and `<ins>`, not `<s>`.

## Interview questions

### Do screen readers announce s text as struck through?

Most do not by default. Add words like 'was' and 'now' in the text so the meaning is clear.

### Is the strike tag still valid?

No, `<strike>` is obsolete. Use `<s>` for outdated content or `<del>` for removed edits.

## Related cards

- [`<del>`](https://wonderium.dev/html/del.md)
- [`<ins>`](https://wonderium.dev/html/ins.md)
- [text-decoration](https://wonderium.dev/css/text-decoration.md)
- [deletion](https://wonderium.dev/a11y/deletion.md)

---

- Level: [HTML](https://wonderium.dev/html.md)
- HTML version: https://wonderium.dev/html/s
- Last updated: 2026-11-25
