<strike> Tag Not Supported in HTML5
Topic: HTML5 Tags ReferencePrev|Next
<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.
|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
The basic syntax of the
<strike> tag is given with:
The example below shows the
<strike> tag in action.
ExampleTry this code »
<!--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>
<strike> is identical in purpose to the
<s> tag, which also specifies that the enclosed text should be rendered a line through it.
<strike> tag doesn't have any specific attribute.
<strike> tag is supported in all major modern browsers.
See tutorial on: HTML Text Formatting, CSS Fonts.