N
The Daily Insight

How do I draw a line through text in HTML?

Author

Daniel Martin

Updated on March 14, 2026

The <strike> HTML element places a strikethrough (horizontal line) over text. Warning: This element is deprecated in HTML 4 and XHTML 1, and obsoleted in HTML5. If semantically appropriate, i.e., if it represents deleted content, use <del> instead. In all other cases use <s> .

Also know, how do you type a line through text?

When you've got your text selected, look on the “Home” tab of Word's Ribbon. In the “Font” group, click the “Strikethrough” button (it's the three letters with a line drawn through them). Now, any text you had selected should be struck through. You can also apply strikethrough formatting using the Font window.

Similarly, how do you type striked words? Just add the text in the given area, click on the StrikeEm button. Now just copy paste the generated text to you timeline or any other place where you to add the strikethrough text. Strikethrough (a.k.a strikeout) is represented by words with a horizontal line through their center.

Similarly, it is asked, how do you draw a line in HTML?

In HTML, we can easily add the Horizontal line in the document using the following different ways: Using Html tag. Using the Internal CSS.

Using Html

  1. <! Doctype Html>
  2. <Html>
  3. <Head>
  4. <Title>
  5. Add the Line using Html tags.
  6. </Title>
  7. </Head>
  8. <Body>

How do you strike out text?

2. Use Font Dialog box strikethrough command

  1. Select the text you want to cross out.
  2. Click the downward facing arrow (pictured above) in the in Font group to open the Font dialog box.
  3. Select Strikethrough (pictured below)
  4. Click OK.

Related Question Answers

How do you put a line through text on iPhone?

Easy! Double-tap a word to highlight it and drag the indicators to select multiple words if you want. Then, a menu will pop up. Tap "BIU" here, then select from one of the four options: Bold, Italic, Underline, or Strikethrough.

How do you insert lines in Word?

To add a line, follow these steps. On the Insert tab, select Shapes. Under Lines, select any line style you like. Select a location in the document, hold and drag your pointer to a different location, and then release the mouse button.

How can I draw in Word?

How to draw in Word
  1. Click the 'Shapes' button and select 'Scribble' Open up your Microsoft Word document.
  2. Hold down your mouse to draw. Click and hold down your mouse to draw.
  3. Release the mouse. As soon as you release your mouse, the drawing will be finished.
  4. Edit your drawing. Double-click your drawing.

How do you put a line through text on messenger?

Strikethrough Text

If you want to draw a line through your text on Messenger, you can use strikethrough formatting. To do this, type a tilde (~) before and after the text. Strikethrough text is typically used to indicate text that is no longer valid or text that should be removed from a draft.

How do you strike out text in Jira?

This page relates to rich text formatting in the new Jira issue view. For information on formatting text in the old issue view, take a look at Editing and collaborating on issues.

Markdown.

Markdown syntax Result
*text* Italics
_text_ Italics
~~text~~ Strikethrough
`text`

How do I draw a line in SVG?

Lines. SVG lets you draw a straight line with the <line> element. Just specify the x- and y-coordinates of the line's endpoints.

How do I draw a horizontal line in HTML?

The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections.

How do I draw a horizontal line between two divs in HTML?

Draw a horizontal line ( width: 100px; height: 1px; border: solid 1px black; ) and then use transform: rotate(30deg); or something to rotate it, or. Use SVG to drag a diagonal line.

How do you write multiple lines in HTML?

To create a multi-line text input, use the HTML <textarea> tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows.

How do you draw a straight vertical line in HTML?

To make a vertical line, use border-left or border-right property. The height property is used to set the height of border (vertical line) element. Position property is used to set the position of vertical line.

How do you color a line in HTML?

The <HR> tag, also known as the horizontal rule or line divider, is used to devide content areas within a web page. If you're using line dividers (horizontal rules) within your web page, you can change the color, width and height of the line dividers by adding some attributes to your <HR> HTML code.

What is HR tag?

The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.