Content · Web Development · HTML

HTML <s> Element: Reference and Examples

A clear, practical element reference to s. Learn when to use it, see working HTML, and avoid common mistakes.

1 views Published Oct 19, 2026 Updated Oct 19, 2026 Admin

The <s> element is used for mark information no longer accurate. You will run into it while reading other people’s HTML, and it is useful to know what job it does before copying the code.

What does <s> mean?


Mark information no longer accurate. The tag gives the browser a specific kind of content to work with. It is more helpful to choose a tag for its meaning than because of its default look.

The browser commonly draws a strike-through, but the meaning is that the information is no longer correct.

A working HTML example


Here is a small example you can place in an HTML page and inspect in your browser:

<section>
    <p>Old price: <s>$60</s>. Current price: $45.</p>
</section>

Reading the example


Find the <s> part first. Notice which elements are around it and how its content or attributes are connected to those other elements.

In this example, <s> appears alongside other semantic markup. That context is often just as important as the element itself.

The browser builds its document from these relationships. Any CSS changes appearance, while interactive JavaScript behavior must be provided separately when the example includes it.

When should you use it?


Use <s> when you want to mark information no longer accurate. A sensible example of this on a real website is the markup shown above; it gives the browser and accessibility tools a clearer job to work with.

Common companions are nearby semantic elements. Check the nesting requirements before moving the element into a different location.

Try it yourself


Change the example content to something from your own website, then check the rendered page and the browser inspector.

Common Beginner Mistakes


  • Use del, rather than s, for an actual edit or deletion in a document.
  • Picking <s> only because it looks a certain way instead of checking what it means.
  • Forgetting to inspect the surrounding markup when an element does not behave as expected.

Key Takeaways


  • <s> helps mark information no longer accurate.
  • The browser commonly draws a strike-through, but the meaning is that the information is no longer correct.
  • Start with meaningful markup, then add styling or scripting only when the page needs it.
Share this resourceSend this page to someone who may find it useful.