Class Address


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

The address element represents the contact information for its nearest article or body element ancestor. It is used to provide contact details such as physical addresses, email addresses, phone numbers, or other contact information. The address element should not be used for arbitrary addresses, but specifically for contact information related to the document or article.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple contact address Address simple = address("123 Main Street, Anytown, ST 12345"); // Contact information with multiple elements Address contact = address( "John Doe", br(), "123 Main Street", br(), "Anytown, ST 12345", br(), a("mailto:john@example.com", "john@example.com") ); // Company address Address company = address( "Acme Corporation", br(), "456 Business Ave", br(), "Suite 100", br(), "Business City, BC 67890", br(), "Phone: (555) 123-4567" ); // Styled address Address styled = address( "Contact us at:", br(), a("mailto:info@company.com", "info@company.com") )._class("contact-info"); // Address with multiple contact methods Address multiple = address( "Support Team", br(), "Email: ", a("mailto:support@example.com", "support@example.com"), br(), "Phone: ", a("tel:+1-555-123-4567", "(555) 123-4567"), br(), "Address: 789 Support St, Help City, HC 54321" );

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

See Also: