HTML Components
HTML components provide a programmatic way to generate HTML markup through PHP methods.Text Elements
Paragraph (p)
A basic block-level element for displaying text content with space before and after it.
This is a simple paragraph of text.
Span
The span()
method creates an inline HTML element used to group and style parts of text or other inline elements.
This is important information.
Italic/Icon (i)
An inline element typically used for styling text in italics or displaying icons from icon libraries.
Container Elements
Div
The div()
method creates a basic HTML container element. It is the most common and flexible way to group and organize content on a web page.
Row (divRow)
The divRow()
method creates a Bootstrap row container. It automatically adds the 'row' class and provides flexbox capabilities for organizing columns and content.
Flex Container (divFlex)
The divFlex()
method creates a flexbox container. It automatically adds the 'd-flex' class and provides methods to control flexbox properties for advanced layouts.
List Elements
Unordered List (ul)
A block element that creates an unordered (bulleted) list to display items without numerical sequence.
- Feature one
- Feature two
- Feature three
Ordered List (ol)
A block element that creates an ordered (numbered) list to display items in a sequential manner.
- First item
- Second item
- Third item
Form Elements
Input
The input()
method creates an HTML input field for collecting user input in forms.
Button
The button()
method creates a clickable button element with various styles and types.
Media Elements
Image (img)
The img()
method creates an HTML image element that displays images on your web page.
Navigation Elements
Link (a)
The a()
method creates an HTML anchor element (link) that allows users to navigate to different pages or resources.