Class Ins


@Marshalled(typeName="ins") public class Ins extends HtmlElementMixed<Ins>
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:
  • Constructor Details

    • Ins

      public Ins()
      Creates an empty Ins element.
    • Ins

      public Ins(Object... children)
      Creates an Ins element with the specified child nodes.
      Parameters:
      children - The child nodes. Must not be null.
  • Method Details

    • cite

      public Ins cite(String value)
      cite attribute.

      Link to the source of the quotation or more information about the edit.

      Parameters:
      value - The new value for this attribute. Can be null to unset the attribute.
      Returns:
      This object.
    • datetime

      public Ins datetime(String value)
      datetime attribute.

      Date and (optionally) time of the change.

      Parameters:
      value - The new value for this attribute. Can be null to unset the attribute.
      Returns:
      This object.