HTML and CSS Reference
In-Depth Information
HTML 4 Event Attributes
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup
Events Defined by Internet Explorer
onactivate, onbeforedeactivate, onbeforeeditfocus, onblur, onclick,
oncontrolselect, ondblclick, ondeactivate, ondrag, ondragend, ondragenter,
ondragleave, ondragover, ondragstart, ondrop, onfocus, onkeydown,
onkeypress, onkeyup, onhelp, onmousedown, onmouseenter, onmouseleave,
onmousemove, onmouseout, onmouseover, onmouseup, onmove, onmoveend,
onmovestart, onreadystatechange, onresizeend, onresizestart, onselectstart,
ontimeerror
Examples
<p> This line contains a <s> misstake </s> ! </p>
<p> strike <s> 1 </s> ... <strike> 2 </strike> ... <s> 3 </s> ... <strong> You're out! </
strong></p>
Compatibility
HTML 4, 4.01 transitional
XHTML 1.0 transitional
Firefox 1+, Internet Explorer 2+,
Netscape 3+, Opera 4+, Safari 1+
Notes
• This element should act the same as the strike element.
• This HTML 3 element eventually was adopted by Netscape and Microsoft and later
was incorporated into the HTML 4.01 transitional specification.
• This element has been deprecated by the W3C. The strict HTML 4.01 specification
does not include the s element or the strike element, and the HTML5 specification
indicates it is obsolete as well.
• It is possible to indicate strikethrough text using a style sheet with the
text-decoration property set to line-through .
<samp> (Sample Text)
This logical inline element is used to indicate sample text. Enclosed text generally is
rendered in a monospaced font.
Standard Syntax
<samp
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric string"
lang="language code"
style="style information"
title="advisory text">
</samp>
Search WWH ::




Custom Search