HTML ins Tag

The HTML <ins> tag is used to define a newly inserted text in an HTML document. The web browser renders this inserted text as an underline and you can also change it through the text-decoration property of CSS.

The <del> element defines the part of the text that has been deleted and <ins> defines the part of the text that has been inserted to the document.

Syntax

<ins>Contents...</ins>

Example

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ins Tag</title>
   </head>
   <body>
      <p>My favourite fruit is<del>Mango</del> <ins>Apple</ins>․</p>
   </body>
</html>

Output:

Html ins tag example

Attributes

Attribute Value Description
cite URL Specifies the URL of the
document or message
which explains the reason for the change.
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time of change.

Global Attributes

The <ins> tag supports all the Global Attributes in HTML.

Event Attributes

The <ins> tag supports all the Event Attributes in HTML.

Supported Browsers

Element Chrome Firefox IE Opera Safari
<ins> Yes Yes Yes Yes Yes

Leave a Comment

Your email address will not be published.