HTML Components

HTML tags mapped to structured builders.

Overview

PageBuilder does not replace HTML. It provides a structured way to generate HTML using builders that encapsulate rendering logic, attributes, styles, and lifecycle.

Each HTML element can be represented by a builder. This allows you to:

Generate HTML through a consistent API
Compose elements safely
Reuse rendering logic
Participate in the PageBuilder rendering pipeline

Core HTML mapping

The following table shows common HTML elements and their PageBuilder equivalents.

HTML Tag PageBuilder Equivalent Description
<div> BlockBuilder Generic container element
<span> PB_Span Inline container
<p> PB_P Paragraph element
<h1> → <h6> TitleBuilder Structured title builder with level control
<img> ImageBuilder Image rendering with additional behaviors
<a> LinkBuilder Link generation with routing support
<button> ButtonBuilder Button with variant and behavior support
<ul> / <ol> ListBuilder List structures
<table> TableBuilder Structured table rendering

Important notes

Not every HTML tag has a dedicated builder. Generic builders can be used when needed.
Some builders represent multiple HTML tags depending on configuration (e.g. TitleBuilder ).
Higher-level builders (BootstrapBuilder) extend this mapping with richer components.

Generic builder usage

When no specific builder exists, you can still generate any HTML tag using a generic builder. This ensures that PageBuilder remains complete and does not limit HTML expressiveness.

Why this mapping matters

The goal of PageBuilder is not to hide HTML, but to make it explicit and structured. By mapping HTML elements to builders, the framework ensures that rendering remains predictable, composable, and aligned with the page pipeline.

Explore the architecture

Understand how builders generate HTML internally and how the rendering lifecycle works.

HtmlBuilderBase → Builder Lifecycle →