<ins> Tag Syntax
<body> ... ... flow content expected ... <ins cite="changelog-URL" datetime="yyyy-mm-ddThh:mm:ss+zz:00"> ... flow content ... </ins> ... ... phrasing content expected ...<ins cite="changelog-URL" datetime="yyyy-mm-ddThh:mm:ss+zz:00">... ... phrasing content ...</ins>... ... </body>
Rules for coding the HTML ins 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 ins element for inserted text and/or HTML code where either flow content is expected or phrasing content is expected.
- Begin the ins element with a starting <ins> 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. - Optionally code a
cite
attribute with the URL of a document that provides an explanation for the change. - Optionally code a
datetime
attribute with the date or date and time of the change. - Include any other global attributes inside the starting <ins> tag as appropriate.
- Inside the ins element, code the text or other content that is being inserted. If the
<ins>
tag is coded where flow content is permitted, then the inner HTML of the<ins>
tag may contain flow content, otherwise it is restricted to phrasing content. - End the ins element with a matching
</ins>
closing tag.
<ins> Content Model
Content of the ins element
When coded in flow content
When coded in flow content, the content of the ins element can include HTML comments, text content and any HTML tags that can be used in flow content.
When coded in phrasing content
When coded in phrasing content, the content of the ins element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.