NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<strike> (Strikeout Text)


This element is used to indicate strikethrough text, namely text with a line drawn through it. The <s> element provides shorthand notation for this element.

Syntax (Transitional Only)



<strike
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric string"
lang="language code"
style="style information"
title="advisory text"
</strike>

Attributes Defined by Internet Explorer


accesskey="key" (5.5)
contenteditable="false | true | inherit" (5.5)
disabled="false | true" (5.5)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
tabindex="number" (5.5)
unselectable="on | off" (5.5)

Standard Event Attributes


onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

Events Defined by Internet Explorer


onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforeeditfocus, onbeforepaste, onblur, oncontextmenu, oncontrolselect, oncopy, oncut, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onfocus, onfocusin, onfocusout, onhelp, onlosecapture, onmouseenter, onmouseleave, onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange, onreadystatechange, onresize, onresizeend, onresizestart, onselectstart, ontimeerror

Example


This line contains a spelling <strike>misstake</strike> mistake.
Price: $<strike style="color: red;">5.00</strike>3.00

Compatibility


HTML 3.2, 4, and 4.01 (transitional), XHTML 1.0 (transitional)
Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 3, 4, 4.5-4.8, 6, 7
Opera 4-7

Notes


This element should act the same as the <s> tag.

This element has been deprecated by the W3C. The strict HTML and XHTML specifications do not include the <strike> tag nor the <s> tag as it is possible to indicate strikethrough text using the style sheet property text-decoration.

(X)HTML Elements
CSS Properties
Previous: span Next: strong
< Home | About | Chapters | Examples | Errata | Reference | Site Map >