The <ins>
element is used to define a piece of text that has been recently added to the webpage. Browsers display this newly added text as underlined text. The inserted text is enclosed within <ins>
and </ins>
tags.
The <ins>
tag supports
Other attributes supported by <ins>
tag are:
Attribute | Value | Explanation |
cite | URL | This allows the user to cite the resource, the URL of the document that explains why the text was inserted |
datetime | YYYY-MM-DDThh:mm:ssTZD | This allows user to specify the date and time the insertion took place |
There are some concerns with using this tag as most screen reader technologies cannot detect it. To make it more visible for screen reading devices, CSS styling can be used.
The following code displays an example of how to use the <ins>
tag.
Free Resources