# How to write a line through text? [duplicate]

How to write a line through text or words ?

Like the \underline{} in latex but in the middle the line, to indicate something is wrong.

• Mar 20 '19 at 3:03
• In the question I linked to, it might take a while for the MathJax to render, so you'll need to be patient. Mar 20 '19 at 3:05
• @JoelReyesNoche In my opinion, this is not a duplicate, since the OP is asking about striking out text and not mathematical formulas. (This message in chat can also be considered as a confirmation that they are asking about text: "And yes I wanted to put a line through a word, not an equation.".) Of course, it is possible the the duplicate for such question is somewhere on this meta, too - I did not find it in the short time I've spent searching. Mar 22 '19 at 6:15
• @MartinSleziak, okay, I'm voting to reopen. Mar 22 '19 at 8:32

For text you do can simply use the corresponding html tag and write <s>strikethrough text</s> to get: strikethrough text. I will explicitly mention that this works in posts but not in comments. See also: Does Markdown have a way to express strikeout? and How to strike text?
I will also add that in chat you can use the syntax ---strikethrough text---. (Although in this question you are probably interested more in posts on main than in chat.)