How do I strike through text (i.e. cross out, or put a line through it) within the Stack Exchange environment?

NB: There are many questions about how to strikeout using different packages, but this question is specifically about how to do it here on this website or on Math.SE.

  • @StevenB.Segletes at math.se or here? – Tim kinsella May 8 at 19:01
  • 4
    Use <s>strike through</s>. – siracusa May 8 at 19:02
  • tex meta site is what I had in mind – Steven B. Segletes May 8 at 19:02
  • 4
    <s>your text</s> but your question is for Meta. – CarLaTeX May 8 at 19:02
  • ok thanks, should i delete this one? – Tim kinsella May 8 at 19:04
  • No, it will be automatically moved to Meta. – CarLaTeX May 8 at 19:05
  • 1
    I got to upvote your comments twice since it was migrated! – Tim kinsella May 8 at 19:50

Formatting of posts can be done using the visual editor within Stack Exchange, Markdown and some HTML. The latter includes "the following safe, whitelisted subset of HTML tags":

<a>              - hyperlink.
<code>           - defines a piece of computer code.
<del>            - delete, used to indicate modifications.
<dl>             - description list.
<em>             - emphasized.
<i>              - italic.
<img>            - specifies an image tag.
<ol>             - ordered list.
<p>              - paragraph.
                   unchanged line breaks.
<s>              - strikethrough.
                   used for footnotes and other formatting.
<strong>         - defines important text.
<ul>             - unordered list.
<br>             - line break.
                   horizontal line.

You can strikeout a piece of text using the <s>...</s> HTML tag pairs.

For more information, see How do I format my posts using Markdown or HTML?


It's possible to strikethrough a text on a post using <s>text</s>

It's not possible to strikethrough on the comment.

It's possible to strikethrough a text on a chat using ---text---.


There is a user script that adds a strikeout button to the stackexchange editor, see https://stackapps.com/q/3341 for instructions for installing.

With this script the editor will have additional buttons on the top right:

feature in action

(animation taken from https://stackapps.com/a/7932)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .