Last Updated on April 26, 2023 by Roshan Parihar
HTML s tag is used inside webpages to show text which is not accurate or relevant. The irrelevant content can be a original price of the product which can be display with discount price.
Syntax
1 |
<s>put irrelevant content here...</s> |
1 |
<p>You can purchase your T-shirt in discounted price <s>$26</s>$20.</p> |
Output
You can purchase your T-shirt in discounted price $26 $20.
Resources and References of HTML s tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github