W3-Video WEB Tutorials

w3-video.com is a Free eLearning Website with over 500 video tutorials on HTML5, XAMPP, .htaccess, Firefox, Notepad++

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

s ... ⁄s

Share it

s intro s browser display s parents - children s syntax

HTML5 s element

The s element allows you to mark up inaccurate or no longer relevant content. »video

About s

Display & support s

Firefox iconChrome iconIE iconOpera iconSafari icon

Parents, children s

Attributes s


To mark removed text from your document, use del tag and not s!

Syntax s

1<s> ... </s> »video

Attributes and Values s (comma separated)

<sattribute="attribute_value(s)"> Video Examples
1. specific attributes
All Specific Attributes
2. global attributes
1.accesskey=keyboard key»img<s accesskey="h"> ... </s>
2.class=class name»html »img<s class="class_name"> ... </s>
3.contenteditable="",  , true, false »html<s contenteditable="true"> ... </s>
4.contextmenu=menu id value»html<s contextmenu="menu_id_value"> ... </s>
5.data-*= value -<s data-http-error="404"> ... </s>
6.dir=ltr, rtl, auto»html<s dir="ltr"> ... </s>
7.draggable= true,  , false»img<s draggable="false"> ... </s>
8.dropzone= copy, move, link, string:, file: -<s dropzone="copy"> ... </s>
9.hidden= "",  , hidden»html »img<s hidden="hidden"> ... </s>
10.id=id name»html »img<s id="unique_id_name"> ... </s>
11.itemid= URL --
12.itemprop= string »link »a-
13.itemref= string --
14.itemscope= "",  , itemscope--
15.itemtype= absolute URL --
16.lang=language code »html »head»title »img<s lang="en"> ... </s>
17.spellcheck="",  , true, false»html<s spellcheck="true"> ... </s>
18.style=CSS property:value»html »img<s style="color:red"> ... </s>
19.tabindex= integer »img<s tabindex="3"> ... </s>
20.title=text»html »link»style »abbr»dfn
»img »meter
<s title="html page"> ... </s>
21.translate="", yes, no»html »img<s translate="yes"> ... </s>
All Global Attributes
3. global event attributes
1.onclick=script» list<element onclick="script" > ...
2.ondblclick=script» list<element ondblclick="script" > ...
All Event Attributes

Video demonstration s element

HTML5 s element: mark up inaccurate content

min video details
00:00 video tutorial: s element
00:05 s element allows you to mark inaccurate or no longer relevant text
00:11 2 days ago this content was accurate; today it isn't
00:18 today this content is accurate
00:22 thus, we will mark this content as inaccurate, using s element
00:35 inaccurate content, marked properly, displays like this in browser

For more information about the s element, please see the specs: W3CWHATWG