Insertions and deletions

To strikeout a passage, surround it with dashes (-). An insertion is marked with pluses (+).

Textile example: Insertions and deletions

The news networks declared -Al Gore- +George W. Bush+ the winner in Florida.

Textile input (editable)

Browser output

HTML output


More about: Insertions and deletions

1. In earlier HTML standards, the HTML <strike> or <s> tags could be used to render a text with a line through it, but this was discouraged in HTML4 and XHTML, and <strike> was obsoleted in HTML5. This is because the <strike> or <s> tag was taken as a purely styling element. To indicate deleted content, the <del> tag is used in HTML5, and it is rendered similarly. Compare:

<strike>Today's Special: Salmon</strike> NO LONGER AVAILABLE

<s>Today's Special: Salmon</s> NO LONGER AVAILABLE

<span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT

<del>Today's Special: Salmon</del> NO LONGER AVAILABLE

Further reading: Insertions and deletions

  1. MDN: The HTML <ins> element
  2. MDN: The HTML <del> element
  3. MDN: The HTML <s> element (non-semantic)
  4. MDN: The HTML <strike> element (obsolete)

See something wrong in this page? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.