HTML <ins> Tag
The <ins>
tag in HTML is used to specify text that has been inserted into a document. This tag is commonly used to highlight changes or additions to a document compared to its previous version.
Example:
<p>This is an <ins>example</ins> of inserted text.</p>
This is an example of inserted text.
Attributes of the <ins>
Tag:
Attribute | Description |
---|---|
cite | Specifies a URL that describes the change. |
datetime | Specifies the date and time when the change was made. |
Usage of Attributes:
The cite
attribute can be used to provide a URL that describes the change. For example:
<ins cite="https://www.example.com/change-description">New Content</ins>
The datetime
attribute can be used to specify the date and time when the change was made. For example:
<ins datetime="2022-01-01T12:00:00">Revision 2.0</ins>