Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to define a text element that inserted into a document in HTML5 ?

  • Last Updated : 01 Apr, 2021

In this article, we will learn how to define some text that has been inserted into a document. This can be used to show recent changes in the text content and is mostly used after the text that is to be deleted or is outdated.


We will use the <ins> element to specify text that has been inserted into the document. The browser usually adds an underline to the text present in this tag to distinguish it from the rest of the content. This element has two attributes that can be used to specify the citation and the time that the change was made.


<ins> Inserted Iext& lt;/ins>

The below example illustrates the <ins> element to define text that has been inserted into a document.



<!DOCTYPE html>
    <h1 style="color: green;">
        How to define a text that has been
        inserted into a document
    <!-- Simple usage of <ins> element -->
        The exam would be held on <del>Monday</del>
        <ins>Friday</ins> at 5PM.
    <!-- Using the <ins> element with the 
        cite and datetime attribute -->
        The venue for the exam is <del>Hall A</del>
        <ins cite="" 
            Hall C


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!