<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.
- Code the s element for strike-through text where phrasing content is expected.
- 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. - Include any HTML global attributes on the <s> tag as appropriate.
- Inside the s element, between the starting
<s>
tag and the ending</s>
tag, code the inner HTML phrasing content. - 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.