strike tag (XHTML 1.0)

strike-through text
Please be aware that this tag is deprecated within the XHTML 1.0 specification! Look below for more details on an alternative.

Topics

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
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012