Open In App

HTML <ins> Tag

HTML <ins> tag is used to specify a block of inserted text. The <ins> tag is typically used to mark a range of text that has been added to the document. The inserted text is rendered as underlined text by the web browsers although this property can be changed using the CSS text-decoration property. The <ins> tag requires a starting and ending tag.

Syntax:



<ins> Contents... </ins>

Attributes: 

Examples of HTML <ins> Tag

Example 1: This example describes the use of <ins> tag. 






<!DOCTYPE html>
<html>
 
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML ins Tag</h2>
    <p>
        GeeksforGeeks is a <del>mathematical</del>
        <ins>computer</ins> science portal
    </p>
 
</body>
 
</html>

Output: 

Example 2: This example uses the <ins> tag with the datetime attribute and also use some CSS styles. 




<!DOCTYPE html>
<html>
 
<head>
    <style>
        del {
            color: red;
        }
         
        ins {
            color: green;
        }
    </style>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
    <h2>HTML ins Tag</h2>
 
    <p>
        GeeksforGeeks is a <del>mathematical</del>
        <ins datetime="2018-11-21T15:55:03Z">
            computer
        </ins> science portal
    </p>
 
</body>
 
</html>

Output: 

Supported Browsers:


Article Tags :