Class Aside


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

The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. It is commonly used for sidebars, pull quotes, advertisements, navigation links, or other content that is related but not essential to the main content.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Sidebar with related links Aside sidebar = aside( h3("Related Articles"), ul( li(a("/article1", "Article 1")), li(a("/article2", "Article 2")), li(a("/article3", "Article 3")) ) )._class("sidebar"); // Pull quote Aside pullQuote = aside( blockquote( "The best way to predict the future is to create it.", footer("— Peter Drucker") ) )._class("pull-quote"); // Advertisement Aside advertisement = aside( h4("Sponsored Content"), p("Check out our latest product!"), a("/product", "Learn More") )._class("advertisement"); // Author bio Aside authorBio = aside( h3("About the Author"), p("John Doe is a web developer with 10 years of experience..."), a("/author/john-doe", "Read more articles") )._class("author-bio"); // Navigation menu Aside navigation = aside( nav( ul( li(a("/home", "Home")), li(a("/about", "About")), li(a("/contact", "Contact")) ) ) )._class("navigation"); // Glossary or definitions Aside glossary = aside( h3("Key Terms"), dl( dt("HTML"), dd("HyperText Markup Language"), dt("CSS"), dd("Cascading Style Sheets") ) )._class("glossary");

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

See Also: