<s>: The S Element

Last updated: 2026-10-13

<s>The S Element

Renders a strikethrough for text that is no longer accurate or relevant (e.g. a crossed-out price).

CategoryFormatting
Content ModelPhrasing content
Allowed ParentsAny element that accepts phrasing content
Content TagYes — requires closing </s> tag
StatusStandard

📝 Syntax

<s>strikethrough text</s>

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
<s> ✓ v1 ✓ v12 ✓ v1 ✓ v1 ✓ v1
Supported in all major browsers
Tip: To mark text deleted from a document, use <del> which is semantically clearer than <s>.

❓ FAQ

QWhat is the difference between s and del?
ASame styling (strikethrough by default), different semantics: <s> means no longer correct or no longer relevant (a struck-out old price, outdated statements), while <del> means content deleted in a document edit. E-commerce strikethrough prices use <s>; revision records use <del>.
QIs the s tag deprecated?
ANo. In HTML4, <s> was deprecated together with <strike>, but HTML5 brought it back with the semantics of no longer accurate. <s> is fully valid today; the truly deprecated one is <strike>.
QShould strikethrough prices use the s tag or CSS?
APrefer <s>: it carries the semantics of no longer accurate, so screen readers and search engines understand this is the old price — far more informative than a pure CSS strikethrough (text-decoration: line-through). Use CSS only when no semantics are needed.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏