Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

html

What is the <ins> element in HTML?

Sheza Munir

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code

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.

RELATED TAGS

html

CONTRIBUTOR

Sheza Munir
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code
Keep Exploring