HTML <s> and <strike> Tags
The s and strike elements are deprecated.
Example
Strikethrough text can be marked up as follows:
<p>Version 2.0 is <s>not yet available!</s> now available!</p>
<p>Version 2.0 is <strike>not yet available!</strike> now available!</p> |
Try it yourself » |
Definition and Usage
The <s> and <strike> tags defines strikethrough text.
Browser Support

The <s> and <strike> tags are supported in all major browsers.
Tips and Notes
Tip: Use the del element instead!
Standard Attributes
DTD indicates in which HTML 4.01/XHTML 1.0
DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <s> and <strike> tags support the following standard attributes:
| Attribute |
Value |
Description |
DTD |
| class |
classname |
Specifies a classname for an element |
TF |
| dir |
rtl
ltr |
Specifies the text direction
for the content in an element |
TF |
| id |
id |
Specifies a unique id for an element |
TF |
| lang |
language_code |
Specifies a language code for the content in an element |
TF |
| style |
style_definition |
Specifies an inline style for an element |
TF |
| title |
text |
Specifies extra information about an element |
TF |
More information about Standard Attributes.
Event Attributes
The <s> and <strike> tags support the following event attributes:
| Attribute |
Value |
Description |
DTD |
| onclick |
script |
Script to be run on a mouse click |
TF |
| ondblclick |
script |
Script to be run on a mouse double-click |
TF |
| onmousedown |
script |
Script to be run when mouse button is pressed |
TF |
| onmousemove |
script |
Script to be run when mouse pointer moves |
TF |
| onmouseout |
script |
Script to be run when mouse pointer moves out of an
element |
TF |
| onmouseover |
script |
Script to be run when mouse pointer moves over an
element |
TF |
| onmouseup |
script |
Script to be run when mouse button is released |
TF |
| onkeydown |
script |
Script to be run when a key is pressed |
TF |
| onkeypress |
script |
Script to be run when a key is pressed and released |
TF |
| onkeyup |
script |
Script to be run when a key is released |
TF |
More information about Event Attributes.
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|