- Element of
- Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide
- What does
<s> HTML Tagdo?
- The <s> element is used to identify text that is no longer accurate or relevant. It is similar to, but semantically distinct from, the <del> element which is used to identify document edits. By default, browsers render the contents of an <s> element with a strikethrough.
<p>My favorite species of flamingo is the <s>Lesser flamingo</s> <s>Andean flamingo</s> Chilean flamingo.</p>
My favorite species of flamingo is the
Lesser flamingo Andean flamingo Chilean flamingo.
<s> is used to strike out text. The content of the
<s> tag is displayed with a line through it.
<s> was removed from the HTML 4 specification, but has been reintroduced in HTML 5 as a way to mark something that is no longer correct.
In previous iterations of HTML,
<strike>, that was used for the same purpose as
<strike> is now deprecated in HTML 5. Additionally, note that the
<del> element should be used for text that has been deleted, rather than incorrect, since
<del> provides the option to add a date stamp.
Browser Support for s