s

< html‎ | elements
Jump to: navigation, search

s

This page has been flagged with the following issues:

High-level issues:


W3C Recommendation

Summary

The <s> element represents contents that are no longer accurate and must be marked accordingly in order to allow keeping it in the document.


Overview Table

DOM Interface HTMLElement

Examples

This example uses the <s> element to render a text that no longer accurate.

HTML

<s>This text is no longer valid.</s>

Typical browser default CSS properties for the <dl> element.

CSS

display: inline;
text-decoration: line-through;

Notes

While <s> and <del> appear to be similar, namely marking obsolete content, but they differ in semantics. <del> marks text that has been removed from the document, but <s> marks text that is to be kept in the document, but made clear that its content is no longer accurate.


Related specifications

Specification Status Related Changes
HTML 4.01 W3C Recommendation deprecated
HTML 5.1 W3C Editor's Draft reappeared

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

External resources

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]