What is the <ins> element in HTML?

The <ins> element is used to define a piece of text that has been recently added to the webpage. Browsers display this newly added text as underlined text. The inserted text is enclosed within <ins> and </ins> tags.

Attributes

The <ins> tag supports global attributesattributes common to all HTML elements, e.g. class, id, lang, title, etc.. It also supports event attributes, which are attributes connected to action events, e.g., user clicks a piece of text.
Other attributes supported by <ins> tag are:

Attribute

Value

Explanation

cite

URL

This allows the user to cite the resource, the URL of the document that explains why the text was inserted

datetime

YYYY-MM-DDThh:mm:ssTZD

This allows user to specify the date and time the insertion took place

Accessibility concerns

There are some concerns with using this tag as most screen reader technologies cannot detect it. To make it more visible for screen reading devices, CSS styling can be used.

Code

The following code displays an example of how to use the <ins> tag.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved