HTML <strike> tag

Updated: 11/13/2018 by Computer Hope
HTML strike tag

When writing in HTML (HyperText Markup Language), the <strike> tag was an inline element used to draw a strikethrough on a section of text. However, this tag is obsolete. Use either the <s> or <del> tag in its place. The following sections contain information about the <strike> tag, including an example of it in use, and related attributes and browser compatibility.

Tip

You may also use CSS (Cascading Style Sheets) to create a strikethrough using the attributed/value pair "text-decoration:line-through;" with <style>.

Example of <strike> code

<p>There is regular text, and there is <strike>strikethrough text
</strike>.</p>

Example result

There is regular text, and there is strikethrough text.

Attributes

All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <strike> tag has no unique attributes.

Compatibility

Edge Internet Explorer Firefox Safari Opera Chrome
All versions * All versions * All versions * All version * All versions * All versions *

*Until it is removed in a future version of HTML

Browser, Compatibility, Container tag, Deprecated, Obsolete, Strikethrough, Web design terms