English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML <s> tag draws a horizontal line through text (i.e., strike-through). This tag is also commonly referred to as the <s> element. The <s> element renders text with a strike-through. It is used to indicate information that is no longer relevant or accurate. However, it is not recommended to use <s> to indicate document editing; for this purpose, it is recommended to use the <del> and <ins> elements.
Text marked as no longer correct:
!doctype html <html> <head> <meta charset="UTF-8"> <title>HTML s tag usage (Basic Tutorial Website oldtoolbag.com)</title> </head> <body> <s>Today39;s Special: Salmon/s> SOLD OUT <span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the <s> tag.
The <s> tag is used to draw a horizontal line over text (also known as a strikethrough).
The <s> tag is used to mark incorrect, inaccurate, or unnecessary text.
The <s> tag should not be used to define substituted or deleted text. If you need to define substituted or deleted text, please use <del>tags.
In HTML 4.01 In, the <s> element is deprecated and used to add strikethrough to text.
HTML5 The <s> element has been redefined and is now used to define incorrect text.
Support for the <s> tag Global attributes of HTML.
Support for the <s> tag HTML event attributes.