Jump to content

Template:Deleted text/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Daask (talk | contribs) at 14:04, 21 June 2024 (Add section on Differentiating from strikethrough). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A way to add inserted deleted without using HTML.

Example:

  • I like free culture and censorship!

The default styling for most browsers is to have this text struck through.

Differentiating from strikethrough

Template:Strikethrough uses <s>...</s>, whereas Template:Deltext uses <del>...</del>.

Wikipedia serves HTML5. According to the HTML5.2 specification for the s element and the del element

  • The <s> element represents contents that are no longer accurate or no longer relevant.
  • The <s> element is not appropriate when indicating document edits; to mark a span of text as having been removed from a document, use the <del> element.
  • The <del> element represents a removal from the document.

The HTML5 specification from WHATWG is continuously updated, and may contain further relevant information on the s element and the del element.

See also