Class Del


@Marshalled(typeName="del") public class Del extends HtmlElementMixed<Del>
DTO for an HTML <del> element.

The del element represents text that has been deleted from a document. It is typically rendered with a strikethrough effect to indicate that the content has been removed. The cite and datetime attributes can be used to provide information about when and why the deletion occurred.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple deleted text Del del1 = del("This text has been removed."); // Deleted text with citation and timestamp Del del2 = del() .cite("https://example.com/revision-log") .datetime("2024-01-15T10:30:00Z") .text("Outdated information removed"); // Deleted text with reason Del del3 = del() .cite("https://example.com/corrections") .datetime("2024-01-15") .text("Incorrect statement") .title("Removed due to factual error");

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

See Also:
  • Constructor Details

  • Method Details

    • cite

      public Del cite(String value)
      cite attribute.

      Specifies the URL of a document that explains the reason for the deletion. This provides context and justification for the edit.

      The URL should point to a document that explains why the content was deleted.

      Parameters:
      value - The URL explaining the reason for the deletion. Can be null to unset the attribute.
      Returns:
      This object.
    • datetime

      public Del datetime(String value)
      datetime attribute.

      Specifies the date and time when the content was deleted. Used for tracking the history of document changes.

      The value should be a valid date-time string in ISO 8601 format.

      Parameters:
      value - The date and time when the content was deleted. Can be null to unset the attribute.
      Returns:
      This object.