<strike> Tag in HTML | Text Formatting

The <strike> tag in HTML is used to display text with a line through it, commonly known as "strikethrough." This tag is often used to indicate that a piece of content is no longer relevant or valid.

Key Points on <strike> Tag:

Syntax of <strike> Tag:

Syntax Example

<strike>Text with strikethrough</strike>

Example of <strike> Tag in HTML:

This example demonstrates the usage of the <strike> tag to show text with a strikethrough effect.

Code Example

<!DOCTYPE html>
        <html lang="en">
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>HTML Strike Tag Example</title>
        </head>
        <body>
            <h1>HTML Strike Tag Example</h1>
            <p>
                The price of the product was <strike>$50</strike> now it's <strong>$40</strong>.
            </p>
        </body>
        </html>

Output

HTML Strike Tag Example

The price of the product was $50 now it's $40.

The <strike> tag is used to display strikethrough text, commonly used for text that is no longer valid or has been replaced. Although it is still supported, it is recommended to use the <s> tag in modern HTML for the same effect.