Class Footer<T extends Footer<T>>


public class Footer<T extends Footer<T>> extends StyledContainerElement<T>
Represents the HTML <footer> element for footer content of a section or page.

The Footer class provides a Java representation of the HTML5 footer element, which defines a footer section for a document or section. It typically contains authorship information, copyright notices, links to related documents, contact information, and navigation.

Features:

  • Semantic HTML5 structural element
  • Contains footer and meta information
  • Improved accessibility and SEO
  • Can contain copyright, links, contact info
  • Multiple footers per document supported
  • Full CSS styling capabilities

Usage Example:


 // Create a page footer
 Footer pageFooter = new Footer();
 pageFooter.addElement(new P("Copyright 2024 My Company"));
 pageFooter.addElement(new A("Privacy Policy", "/privacy"));

 // Create an article footer
 Footer articleFooter = new Footer();
 articleFooter.addElement(new P("Author: John Doe"));
 articleFooter.addElement(new P("Last Updated: Jan 1, 2024"));

 // Create a styled footer with navigation
 Footer styledFooter = new Footer();
 styledFooter.setClass("site-footer");
 Nav footerNav = new Nav();
 // Add footer navigation links...
 styledFooter.addElement(footerNav);
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • Footer

      public Footer()
      Creates a new Footer element for footer content of a section or page.