How do we display inserted text in HTML?


Use the <ins> tag to display inserted text in HTML. The following are the attributes −

Attribute
Value
Description
cite
URL
Defines a URL to another document which explains why the text was deleted.
datetime
YYYYMMDD HH:MM:SS
Defines the date and time the text was deleted.

Example

You can try to run the following code to display inserted text −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ins Tag</title>
   </head>
   <body>
      <p>Following text is inserted using <ins>HTML ins tag</ins>
   </body>
</html>

Updated on: 30-May-2020

324 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements