how to make crossed out text

Mastering the Crossed-Out Text Effect: A Step-by-Step Guide

By Andrew Lewis
AD

Ever needed to draw attention to text in a document or website, but in a manner that's not exactly in-your-face? Crossed out, or strikethrough, text is the subtle way to accomplish this. It's often used to indicate errors, old information, or to highlight changes. Here, we'll guide you through how to create crossed out text using both HTML and CSS, the building blocks of web content.

Crossed out text isn't a standard HTML element, but it can be achieved using the tag or stylishly created with CSS. Read on to learn both methods, their pros and cons, and when to use each.

Using HTML Tag

The tag is a part of the HTML5 specification for marking text that has been deleted or is no longer relevant. It surrounds the text you want to strike through and partners with the tag, which is used to indicate inserted or new text.

AD
scribble (over) = 1. scribble over something (such as picture, or other writing): to do repeated back-and-forth pen marks to cover the thing underneath. 2. to write something fast and because of this make it hard to read, undistinguishable. Cross Writing, Wires Crossed Meaning, How To Read Crossed-out Handwriting, Cross Writing Examples, How To Cross Out Handwriting, Crossed-out Handwriting, Crossed-out Handwriting Style, Scribble Cross, Handwritten Notes With Crossed-out Words
scribble (over) = 1. scribble over something (such as picture, or other writing): to do repeated back-and-forth pen marks to cover the thing underneath. 2. to write something fast and because of this make it hard to read, undistinguishable. Cross Writing, Wires Crossed Meaning, How To Read Crossed-out Handwriting, Cross Writing Examples, How To Cross Out Handwriting, Crossed-out Handwriting, Crossed-out Handwriting Style, Scribble Cross, Handwritten Notes With Crossed-out Words
How to Strikethrough on Google docs to Cross Out Text
How to Strikethrough on Google docs to Cross Out Text
How to cross out all the text in google docs
How to cross out all the text in google docs

Here's how to use it: <del>This</del>. The result is: This. Easy to remember, right?

Pros of using tag

  1. Semantic: It provides semantic meaning to the content, which is beneficial for accessibility and SEO.
  2. Browser compatibility: It's widely supported among modern browsers.

Cons of using tag

  1. Limited styling: You can't style the strike just how you want with CSS.
  2. Thick strike: By default, the strikethrough line is quite thick, which might not be suitable for all designs.

Creating Crossed Out Text with CSS

CSS gives you more control over crossed out text, including the line's color, thickness, and position. To create crossed out text with CSS, you can use the text-decoration property with the line-through value, or even use a pseudo-element to create a more stylish effect.

How to Cross Out Text in Google Docs | Do It In 5 Seconds
How to Cross Out Text in Google Docs | Do It In 5 Seconds
How To Cross Out Text In Discord ( Text Formating )
How To Cross Out Text In Discord ( Text Formating )
Strikethrough, cross out text (strike out t̶e̶x̶t with symbols)
Strikethrough, cross out text (strike out t̶e̶x̶t with symbols)

Our CSS might look like this: This is a crossed out text.</span>. The result: This is a crossed out text. The line is more subtle than the tag's, but offers more customization.

Pros of using CSS for crossed out text

  1. Customization: You can customize the line's style, color, and position.
  2. Subtle strike: The line is usually thinner, providing a more refined look.

Cons of using CSS for crossed out text

  1. No semantic meaning: It doesn't convey the meaning of the deletion or changes, unlike the tag.
  2. More complex to implement: It requires understanding and working with CSS.

So, the choice between the two methods largely depends on your project's requirements. Need semantic meaning and wide browser compatibility? Pick the tag. Want a more stylish strike or more control over the line's appearance? CSS is your friend.

AD
the words are written in different languages
the words are written in different languages
How to Cross Out Text in Discord and Make Text Changes - MiniTool
How to Cross Out Text in Discord and Make Text Changes - MiniTool
Cutout letter
Cutout letter
How to Cross Out Text in Character.AI - Pttrns
How to Cross Out Text in Character.AI - Pttrns
Cross text symbol
Cross text symbol
Learn Common Text Acronyms, Modern Texting Abbreviations, Text Abbreviations And Meanings Chart, Text Slang Guide, Understanding Texting Shorthand, Short Text Messages Meanings, Text Chain Ideas, Texts Meaning, Things That Have Meaning
Learn Common Text Acronyms, Modern Texting Abbreviations, Text Abbreviations And Meanings Chart, Text Slang Guide, Understanding Texting Shorthand, Short Text Messages Meanings, Text Chain Ideas, Texts Meaning, Things That Have Meaning
Savage Love
Savage Love
a cross that is made up of words and lines in the same language, as well as numbers
a cross that is made up of words and lines in the same language, as well as numbers
an abstract black and white pattern with the word shop written in bold font on it
an abstract black and white pattern with the word shop written in bold font on it
AD