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

Placeholder Image GIF

Form Elements

Unordered List

Ordered List

  1. Step one
  2. Step two
  3. 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.


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