HTML Tags

HTML <strike> Tag Not Supported in HTML5

Topic: HTML5 Tags ReferencePrev|Next

Description

The <strike> (short for strikethrough) element renders the enclosed text in strikethrough style i.e. with a line drawn through it.

The following table summarizes the usages context and the version history of this tag.

Placement: Inline
Content: Inline and text
Start/End Tag: Start tag: required, End tag: required
Version: HTML 3.2, 4, 4.01 (transitional)

Warning: Do not use this tag as it has been deprecated in HTML 4.01 and obsolete in HTML5. Use the <del> element instead if enclosed text represents deleted text, otherwise use the CSS text-decoration property, with the line-through value.


Syntax

The basic syntax of the <strike> tag is given with:

HTML / XHTML: <strike> ... </strike>

The example below shows the <strike> tag in action.

<!--Example of bad usage. Don't use this tag-->
<p>Here is some <strike>strikethrough</strike> text.</p>
<!--Alternative-->
<p>Here is a good example of <span style="text-decoration: line-through;">strikethrough</span> text.</p>

Note: The <strike> is identical in purpose to the <s> tag, which also specifies that the enclosed text should be rendered a line through it.


Tag-Specific Attributes

The <strike> tag doesn't have any specific attribute.


Browser Compatibility

The <strike> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 2+
  • Apple Safari 1+
  • Opera 4+

Further Reading

See tutorial on: HTML Text Formatting, CSS Fonts.

Related tag: <s>, <del>.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties