Uses
Marking errors
Strikethrough is primarily used to mark text that is mistaken or to be removed.Track Changes
Deleted words are highlighted by track changes tools in electronic documents.Highlighting
In medieval manuscripts such as theComputer representations
Word Processors
HTML
The HTML presentational inline element for strikethrough is<strike>
or <s>
. This element was, however, deprecated in the 1999 HTML 4.01 standard, and replaced by the <del>
tag, a semantic element representing deleted text, which user agents (typically web browsers) often render as a strikethrough.15.2.1 Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements<s>
, that is strikethrough in HTML 3 and 4, is redefined to mark text that is no longer correct, and secondly, <del>
marks text that has been deleted, as it does in HTML 4.01.4.5.5 The s elementOther markup symbols
* BB Code is a markup language used on many web forums. The BB Code for strikethrough is /code> or trike/code>. To end strikethrough when using /code>, type s/code> (ex. irb s/code>).
* GitHub
GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
flavored Markdown
Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber created Markdown in 2004 as an easy-to-read markup language. Markdown is widely used for blogging and instant messaging, and also used ...
uses double tilde ~~
to wrap around text for strikethrough.
* By surrounding text in Google Chat
Google Chat is a Communication software, communication service developed by Google. Initially designed for teams and business environments, it has since been made available for general consumers. It provides Private message, direct messaging, ...
or WhatsApp
WhatsApp (officially WhatsApp Messenger) is an American social media, instant messaging (IM), and voice-over-IP (VoIP) service owned by technology conglomerate Meta. It allows users to send text, voice messages and video messages, make vo ...
with the ~
(tilde) character, text will be struck out.
CSS
In cascading style sheets (CSS) strikethrough is controlled using the text-decoration
property, and specified by the line-through
value of that property. For example, <span style="text-decoration: line-through;">ABCD efghi</span>
renders like this: ABCD efghi
To maintain backwards compatibility, the following can be added to the CSS:
strike
The example above could then be written like this: <strike>ABCD efghi</strike>
, which is compatible with HTML 4. In HTML 5, this: <del>ABCD efghi</del>
also produces the same result, although the use of CSS is preferred and the del
tag carries a semantic interpretation not present in the purely stylistic s
and strike
tags.
Unicode
Combining characters
In plain text
In computing, plain text is a loose term for data (e.g. file contents) that represent only characters of readable material but not its graphical representation nor other objects ( floating-point numbers, images, etc.). It may also include a lim ...
scenarios where markup cannot be used, Unicode
Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
offers a number of combining character
In digital typography, combining characters are Character (computing), characters that are intended to modify other characters. The most common combining characters in the Latin script are the combining diacritic, diacritical marks (including c ...
s that achieve similar effects.
The "combining long stroke overlay" (U+0336
) results in a stroke across text (may or may not be unbroken depending on the typeface used):
: A̶B̶C̶D̶ ̶e̶f̶g̶h̶i̶
while the "combining short stroke overlay" (U+0335
) results in individually struck out characters:
: A̵B̵C̵D̵ ̵e̵f̵g̵h̵i̵
Similarly, the "combining short solidus overlay" (U+0337
) results in diagonally struck out letters:
: A̷B̷C̷D̷ ̷e̷f̷g̷h̷i̷
as does the "combining long solidus overlay" (U+0338
), which produces longer diagonal strokes:
: A̸B̸C̸D̸ ̸e̸f̸g̸h̸i̸
Specific struck-through characters
A number of characters that have the visual appearance of struck-through characters exist in Unicode, including ⟨ ƀ⟩, ⟨ Đ⟩, ⟨ Ð⟩, ⟨ Ǥ⟩, ⟨ Ħ⟩, ⟨ Ɨ⟩, ⟨ Ɉ⟩, ⟨ Ł⟩, ⟨ Ƚ⟩ ⟨ Ɵ⟩, ⟨ ꝵ⟩, ⟨ Ŧ⟩, ⟨ Ʉ⟩, ⟨ Ƶ⟩, ⟨ ƻ⟩, ⟨ ʡ⟩, ⟨ ʢ⟩, ⟨ Ғ⟩, ⟨ Ҟ⟩, ⟨ Ұ⟩, and ⟨ Ҍ⟩. These usually have specific functions (for example, in the Latin Extended-A
Latin Extended-A is a Unicode block and is the third block of the Unicode standard. It encodes Latin letters from the Latin ISO character sets other than Latin-1 (which is already encoded in the Latin-1 Supplement block) and also legacy characte ...
character set) or representations and are not intended for general use. However, they are not precomposed characters and have neither canonical nor compatibility decompositions. This issue has created security considerations since "precomposed" characters like U+019F and sequences like U+004F U+0335 or U+004F U+0336 often cause visual confusion (compare ⟨Ɵ⟩, ⟨O̵⟩ and ⟨O̶⟩). Unicode has acknowledged this issue and has proposed a standardized method for counteraction.
For slashed letters in an orthography, unitary letters are provided by Unicode. The diacritics are used in generic applications, such as math operators which systematically use the solidus overlay to indicate negation.
Double/multiple strikethrough
Double strikethrough is an option in certain word processing A word processor (WP) is a device or computer program that provides for input, editing, formatting, and output of text, often with some additional features.
Word processor (electronic device), Early word processors were stand-alone devices dedicate ...
applications. It is also in spreadsheets, presentation programs, and graphics programs in certain office suites such as Collabora Online
Collabora Online is an open source online office suite based on LibreOffice, enabling web-based collaborative real-time editing of word processing documents, spreadsheets, presentations, and vector graphics. Optional apps are available for deskto ...
and LibreOffice
LibreOffice () is a free and open-source office productivity software suite developed by The Document Foundation (TDF). It was created in 2010 as a fork of OpenOffice.org, itself a successor to StarOffice. The suite includes applications ...
. There is no generally agreed meaning of double strikethrough, but it may be used as a second level of single strikethrough.
In Japan, double strikethrough is conventionally used (rather than single strikethrough) when striking out text. This is for added clarity, as in complex kanji
are logographic Chinese characters, adapted from Chinese family of scripts, Chinese script, used in the writing of Japanese language, Japanese. They were made a major part of the Japanese writing system during the time of Old Japanese and are ...
a single strikethrough may be missed or confused with a stroke in the character.
Double, triple or multiple strikethrough may also (especially formerly) be used as a way of emphasising words.
Strikethrough using the letter X or a forward slash (/)
Strikethrough made using the letter X or a forward slash (/) instead of a horizontal line is possible in word processors, spreadsheets, presentations and graphics diagramming applications of certain office suites such as Collabora Online
Collabora Online is an open source online office suite based on LibreOffice, enabling web-based collaborative real-time editing of word processing documents, spreadsheets, presentations, and vector graphics. Optional apps are available for deskto ...
and LibreOffice
LibreOffice () is a free and open-source office productivity software suite developed by The Document Foundation (TDF). It was created in 2010 as a fork of OpenOffice.org, itself a successor to StarOffice. The suite includes applications ...
.
Research
Since at least 2014, researchers in the area of optical character recognition
Optical character recognition or optical character reader (OCR) is the electronics, electronic or machine, mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo ...
have attempted to solve the problem of recognizing struck-out text in handwritten documents.
See also
*Bar (diacritic)
A bar or stroke is a modification consisting of a line drawn through a grapheme. It may be used as a diacritic to derive new letters from old ones, or simply as an addition to make a grapheme more distinct from others. It can take the form of a ...
Notes
References
{{Use dmy dates, date=May 2024
Typography