strike tag (XHTML 1.0)
strike-through textPlease be aware that this tag is deprecated within the XHTML 1.0 specification! Look below for more details on an alternative.
The strike tag will give you text which has a line through it, as to indicate that the text is no longer valid. Here's an example:
<strike>This text is old and no longer valid</strike>
The result looks like this:
This text is old and no longer valid
The strike tag is is an alias of the s tag, and they are both deprecated.
Attributes
| Attribute | Deprecated | Required | Description |
|---|---|---|---|
| class | space-separated list of classes | ||
| dir | direction for weak/neutral text | ||
| id | document-wide unique id | ||
| lang | language code | ||
| style | associated style info | ||
| title | advisory title |
Events
| Event | Description |
|---|---|
| onclick | a pointer button was clicked |
| ondblclick | a pointer button was double clicked |
| onkeydown | a key was pressed down |
| onkeypress | a key was pressed and released |
| onkeyup | a key was released |
| onmousedown | a pointer button was pressed down |
| onmousemove | a pointer was moved within |
| onmouseout | a pointer was moved away |
| onmouseover | a pointer was moved onto |
| onmouseup | a pointer button was released |
© htmlpedia.net 2008 - 2012