Dioxus provides access to all standard HTML5 elements through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DioxusLabs/dioxus/llms.txt
Use this file to discover all available pages before exploring further.
rsx! macro. Elements form the building blocks of your user interface.
Basic Elements
Elements are created using their tag name followed by braces containing attributes and children:Element Structure
Elements in RSX follow this structure:Common HTML Elements
Content Sectioning
Text Content
Forms and Input
Media Elements
Element Attributes
Attributes are specified with a colon syntax:Attribute Shorthand
If you have a variable with the same name as the attribute, you can use shorthand:Custom Attributes
For custom or data attributes, use string literals:SVG Elements
SVG elements are supported with proper namespacing:SVG elements automatically use the correct namespace (
http://www.w3.org/2000/svg). You don’t need to specify it manually.Special Elements
Fragment
UseFragment to group elements without a wrapper:
Dangerous Inner HTML
For inserting raw HTML (use with caution):Element Reference
Dioxus supports all standard HTML5 elements. For a complete list, see the HTML element reference on MDN. Common categories include:- Document metadata:
head,title,meta,link,style - Content sectioning:
header,nav,main,article,section,aside,footer - Text content:
div,p,blockquote,ul,ol,li,dl,dt,dd - Inline text:
a,span,strong,em,b,i,code,mark - Forms:
form,input,button,label,select,option,textarea - Tables:
table,thead,tbody,tr,th,td - Media:
img,video,audio,canvas,svg
Next Steps
Styling
Learn how to style your elements
Events
Handle user interactions