<del>
Example
<p>
Price: <del>$40</del> $30
</p><p>
Price: <s>$40</s> $30
</p><s> marks content that is no longer accurate, while <del> marks an edit removed from the document.
Common mistakes
- Using
<del>for an old price, which is no longer relevant rather than removed. - Relying on the strikethrough alone, which most screen readers do not announce.
Interview questions
What attributes does <del> support?
<del> support?cite for a URL explaining the change and datetime for when it was made.
Do screen readers announce <del>?
<del>?Most do not by default, so add hidden text like 'removed' when the change matters.