Usage
All standard element methods follow this signature:Examples
Available Elements
Document Structure (5 elements)
Document Structure (5 elements)
Content Sectioning (11 elements)
Content Sectioning (11 elements)
| Element | Description | MDN Docs | Spec |
|---|---|---|---|
header | Introductory content | MDN | Spec |
nav | Navigation section | MDN | Spec |
main | Main content | MDN | Spec |
section | Generic section | MDN | Spec |
article | Self-contained content | MDN | Spec |
aside | Aside content | MDN | Spec |
footer | Footer content | MDN | Spec |
address | Contact information | MDN | Spec |
hgroup | Heading group | MDN | Spec |
search | Search section | MDN | Spec |
div | Generic container | MDN | Spec |
Headings (6 elements)
Headings (6 elements)
Text Content (14 elements)
Text Content (14 elements)
| Element | Description | MDN Docs | Spec |
|---|---|---|---|
p | Paragraph | MDN | Spec |
blockquote | Block quotation | MDN | Spec |
pre | Preformatted text | MDN | Spec |
ul | Unordered list | MDN | Spec |
ol | Ordered list | MDN | Spec |
li | List item | MDN | Spec |
dl | Description list | MDN | Spec |
dt | Description term | MDN | Spec |
dd | Description details | MDN | Spec |
figure | Figure with caption | MDN | Spec |
figcaption | Figure caption | MDN | Spec |
menu | Menu list | MDN | Spec |
details | Disclosure widget | MDN | Spec |
summary | Summary for details | MDN | Spec |
Inline Text Semantics (24 elements)
Inline Text Semantics (24 elements)
| Element | Description | MDN Docs | Spec |
|---|---|---|---|
a | Anchor/hyperlink | MDN | Spec |
abbr | Abbreviation | MDN | Spec |
b | Bold text | MDN | Spec |
bdi | Bidirectional isolate | MDN | Spec |
bdo | Bidirectional override | MDN | Spec |
cite | Citation | MDN | Spec |
code | Inline code | MDN | Spec |
data | Machine-readable data | MDN | Spec |
dfn | Definition term | MDN | Spec |
em | Emphasis | MDN | Spec |
i | Italic text | MDN | Spec |
kbd | Keyboard input | MDN | Spec |
mark | Marked/highlighted text | MDN | Spec |
q | Inline quotation | MDN | Spec |
s | Strikethrough | MDN | Spec |
samp | Sample output | MDN | Spec |
small | Small text | MDN | Spec |
span | Generic inline container | MDN | Spec |
strong | Strong importance | MDN | Spec |
sub | Subscript | MDN | Spec |
sup | Superscript | MDN | Spec |
time | Time/date | MDN | Spec |
u | Underline | MDN | Spec |
var | Variable | MDN | Spec |
Forms (11 elements)
Forms (11 elements)
| Element | Description | MDN Docs | Spec |
|---|---|---|---|
form | Form container | MDN | Spec |
label | Form control label | MDN | Spec |
button | Interactive button | MDN | Spec |
select | Dropdown select | MDN | Spec |
datalist | Input options list | MDN | Spec |
optgroup | Option group | MDN | Spec |
option | Select option | MDN | Spec |
textarea | Multi-line text input | MDN | Spec |
output | Calculation result | MDN | Spec |
progress | Progress indicator | MDN | Spec |
meter | Scalar measurement | MDN | Spec |
Form Grouping (2 elements)
Form Grouping (2 elements)
Tables (10 elements)
Tables (10 elements)
Media & Embedded Content (7 elements)
Media & Embedded Content (7 elements)
Scripting (3 elements)
Scripting (3 elements)
Ruby Annotations (3 elements)
Ruby Annotations (3 elements)
Web Components (2 elements)
Web Components (2 elements)
Experimental (1 element)
Experimental (1 element)
| Element | Description | MDN Docs |
|---|---|---|
fencedframe | Fenced frame (EXPERIMENTAL) | MDN |
Total Count
99 standard HTML elements are available in Phlex.See Also
- Void HTML Elements - Self-closing elements without content
- Attributes - Learn about HTML attributes in Phlex
- WHATWG HTML Spec - Official HTML specification