<s> Tag Syntax

<body>
   ...
   ... phrasing content expected ...<s>... phrasing content ...</s>...
   ...
</body>
Rules for coding the HTML s element

Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.

  1. Code the s element for strike-through text where phrasing content is expected.
  2. Begin the s element with a starting <s> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the xmlns attribute on the <html> tag.
  3. Include any HTML global attributes on the <s> tag as appropriate.
  4. Inside the s element, between the starting <s> tag and the ending </s> tag, code the inner HTML phrasing content.
  5. End the s element with a matching </s> closing tag.
Content Model
Content of the s element

The content of the s element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.