HTML s Tag

HTML <s> tag is used to represent the range of content which is no longer accurate or relevant in some way. The text written between <s> (start) and </s> (end) tag, renders as a strike a line through the text.

Note: Do not confuse with <del> and <s> as <del> is used for the text which is deleted or removed from document and <s> represent the text which is no longer accurate.

Syntax

Example

<s> Write your content here.....</s>

Here are some details regarding the HTML <s> element:

Display Inline
Start tag/End tag Both Start and End tag
Usage Formatting

Example

Example

<!DOCTYPE html>

<html>

<head>

	<title>HTML s tag</title>

	<style>

		body{

		text-align: center;}

		s{

		color: green;

		}

	</style>

</head>

<body>

<h2>Example of s tag</h2>

<p><s>The last date of apply for online classes is 12/02/2019</s></p>

<p>The last date of apply for online classes is 13/03/2019</p>

</body>

</html>

Output:

Attribute:

Tag-specific attributes:

The <s> element does not have any particular attribute associated with it.

Global attribute:

The <s> tag facilitates the utilization of global attributes within HTML.

Event attribute:

The <s> tag enables the utilization of event attributes within HTML.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<s> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below: