s

The HTML <s> element marks content that is no longer accurate, valid, or relevant. It is different from <del>, which represents content removed as part of a document edit.

What you will learn

Basic example

<p>This offer is <s>valid until Friday</s> no longer available.</p>

The old wording is shown as no longer valid, but it is not necessarily a record of a document edit. This makes s useful for outdated prices, discontinued products, or superseded information.

s and del

If a strike-through is only a visual design choice, use CSS instead. Choose the element according to the information you want to communicate.

Related pages