content logo

Learn HTML:

Html s tag

When writing in HTML, the <s> tag is an inline element used to create a strikethrough on a section of text. It is useful for designating text that is no longer relevant or correct in some way. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Note: To define text that has been replaced or deleted, use <ins> and <del> tags instead of <s>.

Example code

<p><s>We have six puppies left for sale.</s></p>
<p>We have five puppies left for sale.</p>

 

#HTML S Example #HTML S Code #HTML S Tutorial