Class Title<T extends Title<T>>

All Implemented Interfaces:
HeadElement

public class Title<T extends Title<T>> extends RawTextElement<T> implements HeadElement
Represents an HTML <title> element. Defines the document's title that is shown in the browser's title bar or tab. The title element is required in all HTML documents and should be placed within the head section.

The title is used by:

  • Browsers to display the page name in tabs and bookmarks
  • Search engines as the primary headline in search results
  • Screen readers to help users identify the page

Note: The ID attribute is excluded from the title element as it's not typically needed.

Since:
1.0
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Title

      public Title()
      Constructs a new Title element with no text content. The text content can be set later using setText() or addText() methods.
    • Title

      public Title(String title)
      Constructs a new Title element with the specified text content.
      Parameters:
      title - the title text to display in the browser