Class Ins


@Bean(typeName="ins") public class Ins extends HtmlElementMixed
DTO for an HTML <ins> element.

The ins element represents a range of text that has been added to a document. It is used to mark up content that has been inserted or added to the document, typically in the context of document editing or version control. The ins element can contain any flow content and is commonly used with the del element to show document changes. It is typically rendered with an underline or other visual indication to show that the content has been added.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple inserted text Ins simple = ins("This text was added"); // Ins with styling Ins styled = ins("Styled inserted text") ._class("insertion"); // Ins with complex content Ins complex = ins( "The ", strong("new feature"), " has been added to the system." ); // Ins with ID Ins withId = ins("Text with ID") .id("inserted-text"); // Ins with styling Ins styled2 = ins("Custom styled inserted text") .style("background-color: #d4edda; color: #155724; text-decoration: underline;"); // Ins with multiple elements Ins multiple = ins( "The ", ins("new section"), " has been ", ins("added"), " to the document." ); // Ins with links Ins withLinks = ins( "See ", a("/changes", "change log"), " for more details." );

The following convenience methods are provided for constructing instances of this bean:

See Also: