HtmlBuilder Feature Showcase
All Available Methods Demonstrated
This page demonstrates all the features of the HtmlBuilder class.
This is a simple div
This is a div with a CSS class
Buttons
Links
Visit GitHub
Learn Java
Images
Form Elements
Unordered List
- First item
- Second item
- Third item
Ordered List
- Step one
- Step two
- Step three
Text Formatting
Subheading
Smaller subheading
Smallest heading
This is a quote using BlockQuote element
const x = 42;
Bold textItalic text
Div Fluent API Demonstration
The Div class now supports fluent API for nesting elements:
Card Title
This is a card created using the Div fluent API.
This div contains multiple nested elements:
Nested Section
This paragraph is inside a nested div.
- Nested item 1
- Nested item 2
- Nested item 3
Back to the outer div content.
GitHub Link inside Div
Created via Builder
This div was created using builder.createDiv().
builder.createDiv("className").paragraph("text");
Simple Inline Div
Created without a class name.
Bold text inside divItalic text inside div