WebToolsPlanet
Developer Tools

HTML Strikethrough Generator

Generate a strikethrough HTML element — choose <s> for no-longer-relevant content or <del> for editorially deleted content — and copy with live preview.

Last updated: May 21, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is HTML Strikethrough Generator?

HTML offers two semantic strikethrough elements. `<s>` (strikethrough) marks content that is no longer accurate or relevant but is kept for context — like a crossed-out old price next to a new sale price. `<del>` marks content that has been removed from a document as part of an edit, optionally citing the reason (`cite`) and when it was deleted (`datetime`).

The deprecated `<strike>` tag is also supported for legacy codebases but should be avoided in new code — use `<s>` or `<del>` instead. For visual-only strikethrough without semantic meaning, use CSS `text-decoration: line-through`.

How to Use HTML Strikethrough Generator

1

Enter the text to strike through

2

Choose the appropriate tag: <s> for no-longer-relevant, <del> for deleted content

3

For <del>, optionally add a cite URL and datetime

4

Copy the generated HTML

Common Use Cases

  • E-commerce pages crossing out original prices next to sale prices.
  • Document editors marking deleted text in tracked-changes views.
  • Content authors showing superseded information kept for context.

Example Input and Output

A crossed-out original price using <s>.

Configuration
Text: old price $99
Tag: <s>
HTML output
<s>old price $99</s>

Privacy

All HTML generation runs in your browser. No data is sent to any server.

Frequently Asked Questions

When should I use <s> vs <del>?
Use <s> when content is no longer accurate or relevant but you want to keep it visible — e.g., a struck-through old price. Use <del> when you are marking an editorial deletion, such as in a changelog or document revision — it pairs with <ins> for inserted text.
What does the datetime attribute on <del> do?
The datetime attribute records when the deletion occurred. It must be a valid date/time string (ISO 8601). It is not displayed visually but is used by screen readers and archival tools to record the edit history.