Introduction
The <s>
element in HTML is used to represent text that is no longer accurate or relevant, indicating a strikethrough effect. It’s often used to show deleted or deprecated information.
Here’s an example of how you might use it:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>The price of laptop is <s>800000</s> 600000 .</p>
</body>
</html>
Output :

In this example, the text “800000” within the <s>
element will be displayed with a strikethrough effect, indicating that it’s no longer accurate or relevant.