Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML S Element
S Element

S is a formatting element used for deletion of text. S is HTML5 Element and is same as del element. Strike is also works same like S but it is removed from HTML5.

Syntax

<s>Content</s>

Or

<tag><s>Content</s></tag>


You can apply s element to any element and use any where within a HTML document.


Example

I am Deleted Text


S is a pair tag and output of s element is horizontal line through text like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create one paragraph
  • Assign text I am deleted Paragraph to paragraph
  • Now delete text deleted from paragraph

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

I am deleted Paragraph


Don't forget s is non empty element which means it always comes in pair.