<s>: The HTML Strike Through Element

1 Description

The HTML <s> element is used to cross out text. Text within the <s> element will be rendered by the web browser with a single horizontal line through the middle of the text.

The <s> element is useful when you want to clearly indicate to the user that text has been deleted, or removed from the document.

2 Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <h1>The Strikethrough element</h1>
        <p>
            The strikethrough element is useful when you want
            to show that <s>some words</s> text has been
            deleted or removed from a document.
        </p>
    </body>
</html>

This document was last updated: