Skip to content

HTML <strike> Tag

The <strike> tag is used to define a strikethrough text.

DANGER

The <strike> element is a deprecated HTML tag and not supported in HTML5. Use &ltdel>, &lts> or CSS styles instead.

For creating a strikethrough, you can also use the CSS text-decoration: line-through; property.

CSS is great for styling, but it doesn’t convey the semantic meaning of your content. That’s why it’s better to use HTML semantic tags.

Both the <s> and <del> tags are strikethroughs, but they convey different meanings about the content. The <s> tag is used if you want to represent something that isn’t accurate or relevant anymore. You shouldn’t use it for indicating document edits. If you want to indicate something that is removed from the document, use <del>.

Syntax

The <strike> tag comes in pairs. The content is written between the opening (<strike>) and closing (</strike>) tags.

Example of the HTML <strike> tag:

HTML <strike> tag

html
<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <p><strike>I am studying at the school.</strike></p>
    <p>I am studying at the university.</p>
  </body>
</html>

Result

strike example

How to style an HTML <strike> tag

css
strike {
  text-decoration: line-through;
}

Practice

What is the correct usage of the HTML <strike> tag, and how is it rendered by modern browsers?

Dual-run preview — compare with live Symfony routes.