Class CssLink<T extends CssLink<T>>

All Implemented Interfaces:
HeadElement

public class CssLink<T extends CssLink<T>> extends Link<T>
Represents an HTML link element specifically configured for CSS stylesheets.

This convenience class extends Link and automatically sets the rel attribute to "stylesheet" for easier CSS file inclusion.

CssLink elements are used to:

  • Include external CSS stylesheets in HTML documents
  • Apply styles defined in separate CSS files
  • Maintain separation of content and presentation

The relationship is automatically set to STYLESHEET and the href points to the CSS file location.

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

    • CssLink

      public CssLink(String stylesheet)
      Constructs a new CssLink element that references an external stylesheet. Automatically sets the relationship to stylesheet and the href to the specified URL.
      Parameters:
      stylesheet - the URL of the CSS stylesheet file to include