HTML<ins>Tag: The HTML<ins>tag specifies a text that is inserted into an document. The HTML ins tag is typically used to mark a range of text that has been added to the document. And also the inserted text is rendered as underlined text by the web browsers although this property can be changed using CSS text-decoration property. The <ins> tag requires a starting and ending tag.
HTML<ins>Tag
This HTML ins tag supports both the global and the event attributes.
Syntax: <ins> Text </ins>
Browser compatibility
The HTML<ins>tag is supported by different types of browsers.
- Chrome
- Firefox
- Opera
- Safari
- Internet Explorer
Example:
<!DOCTYPE html> <html> <body> <p>My favorite Programming language is <del>HTML</del> <ins>CSS</ins>!</p> </body> </html>
Output:
My favorite Programming language is HTML CSS!
Attributes that are supported by the <ins> tag
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies a URL to a document that explains the reason why the text was inserted/changed |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was inserted/changed |