HTML semantics mapped to Avalonia
Native HTML Markup
Use familiar document semantics without putting a browser inside the application.
Explore source ↗Capability
HtmlML provides HTML-shaped XAML elements for headings, text, lists, navigation, sections, media, links, scripts, styles, and Canvas while creating normal native Avalonia controls.
- 01
30+ HTML-shaped elements
- 02
Native Avalonia control output
- 03
Document, semantic, and media tags
- 04
Extensible element base classes
How it composes
From intent
to working system.
Declare
HTML-shaped tags express document and application structure in XAML.
Create
Each element maps to an Avalonia control with normal properties and layout.
Compose
Elements participate in native trees, resources, input, and lifecycle.
Extend
Applications derive new elements or register domain-specific tags.
Quick start
Adopt this
capability.
Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.
git clone https://github.com/wieslawsoltes/HtmlML.git# Add a ProjectReference to src/HtmlML/HtmlML.csproj.<html xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <body class="app-body"> <nav><a href="#work">Work</a></nav> <section class="hero"> <h1>Native Avalonia. Familiar markup.</h1> <p>No embedded browser required.</p> </section> </body></html>Modules in this capability
Use one layer.
Compose the rest.
Source of truth
Read the module beside the complete system.
The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.