HTML <ins> tag is used to represent the newly added text in an HTML document. It usually renders with an underline through the text, but it can be changed using CSS property.

The <ins> tag is more useful when it is used with the <del> element as it represents the part of the text that has been deleted and <ins> represent the part of the text that has been inserted to the document.

Syntax:

<ins>Insert the text.......</ins>  

Following are some specifications about the HTML <ins> tag

DisplayInline
Start tag/End tagBoth Start and End tag
UsageSemantics

Example

  

    <!DOCTYPE html>  
    
    <html>  
    
    <head>  
    
        <title>HTML ins Tag</title>  
    
    </head>  
    
    <body>  
    
    <h2>Example of ins tag</h2>  
    
    <p>  
    
        If you will do <del>hard work </del> <ins>smart work</ins> then you will get success easily   
    
    </p>  
    
    </body>  
    
    </html>

    Output:

    HTML ins tag

    Attribute

    Tag-specific attribute

    AttributeValueDescription
    citeURLIt specifies the URL of the resource which explains the reason for the change.
    datetimeYYYYMMDD
    HH:MM:SS
    It specifies the date and time of change.

    Global attribute

    HTML <ins> tag supports the global attributes in HTML

    Event attribute

    HTML <ins> tag supports the event attributes in HTML.

    Supporting Browsers

    Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
    <ins>YesYesYesYesYes

    Comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *