Which HTML tag is used to give strikethrough effect to text?

 Two HTML tags are available to give strikethrough effect to text.

1. <s>

The <s> tag specifies text that is no longer correct, accurate or relevant. The text will be displayed with a line through it. For example, you have seen product prices strike out during Sale period to reflect discounted price.

Sale Price Rs. <s>100</s> 80

Output:
Sale Price Rs. 100 80

2. <del>

<del> tag also works in same manner.

Sale Price Rs. <del>100</del> 80

Output:
Sale Price Rs. 100 80

Comments

Popular Posts

How to Import and Export Delimited Files, like CSV, in PowerShell

PowerShell Arithmetic Operators

How to generate a GUID in PowerShell