Class Title


@Bean(typeName="title") public class Title extends HtmlElementRawText
DTO for an HTML <title> element.

The title element represents the document's title or name. It is used to provide a title for the document that appears in the browser's title bar, bookmarks, and search engine results. The title element should be placed within the head element and should be descriptive and unique for each page. It is important for SEO, accessibility, and user experience as it helps users identify the page content and purpose.

Examples:

import static org.apache.juneau.bean.html5.HtmlBuilder.*; // Simple page title Title simple = title("Welcome to My Website"); // Title with dynamic content Title dynamic = title("User Dashboard - " + username); // Title with branding Title branded = title("About Us | My Company"); // Title with SEO keywords Title seo = title("Best Coffee Shops in Seattle - 2024 Guide"); // Title with separator Title separated = title("Contact Us - Get in Touch"); // Title with emoji Title emoji = title("🎉 Welcome to Our Store!");

See Also: