Format Code Now
/
Web & markupHTML Strikethrough Generator Next: HTML Submit Input Generator ›

HTML Strikethrough Generator

WM-39

Type the text and choose s for content that is no longer accurate, del for a deletion, or ins for an addition. del and ins can carry a date and a source.

Runs in your browser. Nothing is uploaded.

Text (optional lines for del and ins: datetime:, cite:)

HTML

How to use it

  1. Type the text to strike or mark.
  2. For del or ins, optionally add datetime: and cite: lines.
  3. Pick s, del or ins.
  4. Copy the element.

s versus del

The s element is for content that is no longer accurate or relevant, such as an old price next to a new one, but that is not being edited out of the document. The del element records that text was removed in an edit, and ins records text that was added. Browsers strike through both s and del by default and underline ins. Choose by meaning: a price list that still shows the old price uses s, a changelog of edits uses del and ins.

datetime and cite on edits

del and ins accept a datetime attribute with the date or date and time of the change, such as 2026-11-21 or 2026-11-21T09:30, and a cite attribute with the address of a page that explains it. The tool checks that the date is a real calendar date. Browsers do not show either value, though scripts and some tools can read them. For strikethrough on other elements, use the CSS property text-decoration: line-through.

Error messages and what to do

MessageWhat it meansFix
"datetime:" must be a date such as 2026-11-21 or a date and time such as 2026-11-21T09:30.The datetime line was not a real date.Use the form YYYY-MM-DD, optionally followed by T and a time.

Questions people ask

How do I strike through text in HTML?

Wrap the text in s for outdated content or in del for deleted content. Both are drawn with a line through them by default. Pick by meaning, as the s element and the del element are not interchangeable even though they look alike by default.

What is the difference between s and del?

s marks content that is no longer accurate. del marks a removal made as an edit to the document. Use del with ins when you show changes.

How do I add a date to deleted text?

Use the datetime attribute on del or ins, in the form 2026-11-21 or 2026-11-21T09:30. Add a datetime: line to the input. The date is not shown on the page by browsers, so add visible text if readers need to see when the change was made.

Does strikethrough text still get read by screen readers?

Support differs, and many do not announce the strikethrough. If it matters, add visually hidden words such as deleted or removed around it with your own styles.

How do I strike through text with CSS?

Use text-decoration: line-through on any element. That is for appearance alone and adds no meaning, unlike s and del. Use it for a purely visual effect, such as a discount price, when you do not need to say the text was removed or outdated.

About this tool

The s action wraps the text in <s>, for content that is no longer accurate or relevant, such as an old price. The del and ins actions record an edit to a document and can carry a datetime: and a cite: line; del is struck through by default and ins is underlined. The datetime must be a real date such as 2026-11-21, or a date and time such as 2026-11-21T09:30; a date that does not exist, like February 30, is refused. The datetime: and cite: lines apply to del and ins only; the s action treats them as text. The tool applies no CSS, so for strikethrough on an element that is not s or del, use text-decoration: line-through.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.