Expand description
Typed HTML element definitions.
This module provides Facet-derived types for all standard HTML5 elements. Each element type includes its valid attributes and can contain child elements.
§Organization
Elements are organized by category:
- Document:
Html,Head,Body - Metadata:
Title,Base,Link,Meta,Style - Sections:
Header,Footer,Main,Article,Section,Nav,Aside - Headings:
H1,H2,H3,H4,H5,H6 - Grouping:
P,Div,Span,Pre,Blockquote,Ol,Ul,Li, etc. - Text-level:
A,Em,Strong,Code,Br,Wbr, etc. - Embedded:
Img,Iframe,Video,Audio,Source,Picture - Tables:
Table,Thead,Tbody,Tr,Th,Td, etc. - Forms:
Form,Input,Button,Select,Option,Textarea,Label - Interactive:
Details,Summary,Dialog - Scripting:
Script,Noscript,Template,Canvas
Structs§
- A
- Hyperlink.
- Abbr
- Abbreviation.
- Address
- Address/contact information.
- Article
- Self-contained article.
- Aside
- Sidebar content.
- Audio
- Audio player.
- B
- Bold.
- Base
- Base URL for relative URLs.
- Bdi
- Bidirectional isolation.
- Bdo
- Bidirectional override.
- Blockquote
- Block quotation.
- Body
- The document body containing visible content.
- Br
- Line break.
- Button
- Button.
- Canvas
- Canvas for graphics.
- Caption
- Table caption.
- Cite
- Citation.
- Code
- Code fragment.
- Col
- Table column.
- Colgroup
- Column group.
- Data
- Data with machine-readable value.
- Datalist
- Datalist.
- Dd
- Description details.
- Details
- Details disclosure widget.
- Dfn
- Definition term.
- Dialog
- Dialog box.
- Div
- Generic container (block).
- Dl
- Description list.
- Dt
- Description term.
- Em
- Emphasis.
- Fieldset
- Fieldset grouping.
- Figcaption
- Figure caption.
- Figure
- Figure with optional caption.
- Footer
- Page or section footer.
- Form
- Form.
- Global
Attrs - Global attributes that can appear on any HTML element.
- H1
- Level 1 heading.
- H2
- Level 2 heading.
- H3
- Level 3 heading.
- H4
- Level 4 heading.
- H5
- Level 5 heading.
- H6
- Level 6 heading.
- Head
- The document head containing metadata.
- Header
- Page header.
- Hr
- Horizontal rule (thematic break).
- Html
- The root HTML document element.
- I
- Italic.
- Iframe
- Inline frame.
- Img
- Image.
- Input
- Input control.
- Kbd
- Keyboard input.
- Label
- Form label.
- Legend
- Fieldset legend.
- Li
- List item.
- Link
- External resource link.
- Main
- Main content area.
- Mark
- Highlighted text.
- Meta
- Document metadata.
- Meter
- Meter/gauge.
- Nav
- Navigation section.
- Noscript
- Noscript fallback.
- Object
- Embedded object.
- Ol
- Ordered list.
- Optgroup
- Option group.
- Option
Element - Option in a select.
- Output
- Output.
- P
- Paragraph.
- Picture
- Picture element for art direction.
- Pre
- Preformatted text.
- Progress
- Progress indicator.
- Q
- Inline quotation.
- Ruby
- Ruby annotation (for East Asian typography).
- S
- Strikethrough (no longer accurate).
- Samp
- Sample output.
- Script
- Script.
- Section
- Generic section.
- Select
- Select dropdown.
- Slot
- Slot for web components.
- Small
- Small print.
- Source
- Media source.
- Span
- Generic container (inline).
- Strong
- Strong importance.
- Style
- Inline stylesheet.
- Sub
- Subscript.
- Summary
- Details summary.
- Sup
- Superscript.
- Svg
- SVG root element (simplified).
- Table
- Table.
- Tbody
- Table body.
- Td
- Table data cell.
- Template
- Template.
- Textarea
- Textarea.
- Tfoot
- Table foot.
- Th
- Table header cell.
- Thead
- Table head.
- Time
- Time.
- Title
- The document title.
- Tr
- Table row.
- Track
- Text track for video/audio.
- U
- Underline.
- Ul
- Unordered list.
- Var
- Variable.
- Video
- Video player.
- Wbr
- Word break opportunity.
Enums§
- Flow
Content - Flow content - most block and inline elements.
- Phrasing
Content - Phrasing content - inline elements and text.