Class Footer


@Bean(typeName="footer") public class Footer extends HtmlElementMixed
DTO for an HTML <footer> element.

The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. It is used to provide information about the section it belongs to, such as author information, copyright notices, links to related documents, or other metadata. The footer element can contain any flow content and is typically used at the bottom of a page, article, or section.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple page footer Footer simple = footer("© 2024 My Company. All rights reserved."); // Footer with multiple elements Footer complex = footer( p("© 2024 My Company. All rights reserved."), p( "Contact: ", a("mailto:info@company.com", "info@company.com") ) ); // Footer with styling Footer styled = footer( p("© 2024 My Company"), p("Privacy Policy | Terms of Service") )._class("page-footer"); // Footer with navigation Footer withNav = footer( nav( ul( li(a("/about", "About")), li(a("/contact", "Contact")), li(a("/help", "Help")) ) ), p("© 2024 My Company") ); // Footer with ID Footer withId = footer( p("© 2024 My Company. All rights reserved."), address("123 Main St, City, State 12345") ).id("main-footer"); // Footer with styling Footer styled2 = footer( p("© 2024 My Company"), p("Built with ❤️ using modern web technologies") ).style("background-color: #f0f0f0; padding: 20px; text-align: center;"); // Footer with multiple sections Footer multiSection = footer( div( p("© 2024 My Company"), p("Privacy Policy | Terms of Service") )._class("footer-content"), div( a("/about", "About"), a("/contact", "Contact") )._class("footer-links") );

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

See Also: