View video tutorial

HTML <s> Tag

HTML

The <s> tag specifies strike-through text.

HTML


The <s> element renders text with a line-through, to represent things that are no longer relevant or no longer accurate.

The text will be rendered with a line through it.

However, <del> and <ins> are more appropriate for this purpose than <s>.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<p>This element renders text with a <s>line-through, to represent things that are no longer relevant or no longer accurate</s>
</p>
Try it Now »

Click on the "Try it Now" button to see how it works.