Class Anchor<T extends Anchor<T>>


public class Anchor<T extends Anchor<T>> extends A<T>
Represents an HTML anchor element with a more descriptive class name.

This class extends the A element class and provides a more readable name for code clarity. Anchors are used to define hyperlinks or named locations within a document.

The Anchor class can be used to:

  • Create hyperlinks to other pages or resources
  • Define named anchor points within a page for internal navigation
  • Set the ID and name attribute for backward compatibility
Since:
1.0
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Anchor

      public Anchor()
      Constructs a new Anchor element with no attributes. Creates an empty anchor that can be configured with href, name, or other attributes.
    • Anchor

      public Anchor(String name)
      Constructs a new named Anchor element. Sets both the ID and name attributes to support older browsers that rely on the name attribute for anchor navigation.
      Parameters:
      name - the name identifier for this anchor point