Novolis.Markup.Html 2026.1.1.61

dotnet add package Novolis.Markup.Html --version 2026.1.1.61
                    
NuGet\Install-Package Novolis.Markup.Html -Version 2026.1.1.61
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Novolis.Markup.Html" Version="2026.1.1.61" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Novolis.Markup.Html" Version="2026.1.1.61" />
                    
Directory.Packages.props
<PackageReference Include="Novolis.Markup.Html" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Novolis.Markup.Html --version 2026.1.1.61
                    
#r "nuget: Novolis.Markup.Html, 2026.1.1.61"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Novolis.Markup.Html@2026.1.1.61
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Novolis.Markup.Html&version=2026.1.1.61
                    
Install as a Cake Addin
#tool nuget:?package=Novolis.Markup.Html&version=2026.1.1.61
                    
Install as a Cake Tool

Novolis

Novolis · Docs · Source

Novolis.Markup.Html

Fluent HTML, CSS, JavaScript (functions and classes), and SVG builders for .NET.

Install

dotnet add package Novolis.Markup.Html

Prerequisites: .NET 10 SDK (net10.0).

Quick start

using Novolis.Markup.Html;

var page = HtmlMarkup.Document(doc => doc
    .Lang("en")
    .CharsetUtf8()
    .Viewport()
    .Title("Hello")
    .StyleSheet(css => css
        .Rule("body", r => r
            .Margin(0)
            .FontFamily("Georgia, serif")
            .BackgroundColor("#0b1c2c")
            .Color("#e8f1f5"))
        .Rule(".hero", r => r
            .Flex()
            .JustifyContent("center")
            .Padding("2rem")))
    .WithBody(body => body
        .Div(d => d.Class("hero")
            .H1("Novolis")
            .P("Fluent markup.")
            .Svg(svg => svg
                .Width(120).Height(120).ViewBox(0, 0, 120, 120)
                .Circle(60, 60, 48, c => c.Attr("fill", "#1a9b8e")))))
    .Script(js => js
        .Function("greet", ["name"], body => body.Return("`Hello, ${name}`"))
        .Class("App", c => c
            .Constructor([], "this.ready = true;")
            .Method("run", [], "greet('world');"))));

File.WriteAllText("index.html", page.ToString());

Surfaces

API Role
HtmlMarkup / HtmlDocument / HtmlElement HTML5 documents and elements
HtmlFragment Sibling nodes without a wrapper
Css.CssStylesheet / CssRule Common layout, flex/grid, type, color, border props
Js.JsScript / JsClass Function and class declarations (intentionally narrow)
Svg.SvgRoot SVG shapes, text, gradients, groups

Factories

HtmlMarkup.H2("Title");
HtmlMarkup.Ul(["one", "two"]);
HtmlMarkup.Ol(["a", "b"]);
HtmlMarkup.Table(["Col"], [["cell"]]);
HtmlMarkup.PreCode("var x = 1;", "csharp");
HtmlMarkup.Alert("Warning", "Careful");
HtmlMarkup.A("https://example.com", "Example");
HtmlMarkup.Fragment(HtmlMarkup.H1("Hi"), HtmlMarkup.P("Body"));

Novolis.Markup.Markdown converts documents through these factories (MarkdownToHtmlConverter).

Text nodes and attributes are escaped; use Raw only for trusted fragments (or for CSS/JS already produced by the builders).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Novolis.Markup.Html:

Package Downloads
Novolis.Markup.Markdown

Fluent GitHub-flavored Markdown document builder for .NET.

Novolis.Markup.Markdown.Rendering

HTML document export for Markdown source (Novolis.Markup.Markdown). PDF via Novolis.Markup.Markdown.Documents + Documents.Skia.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.1.1.61 55 10/2/2026
2026.1.1.60 60 10/2/2026
2026.1.1.58 39 10/2/2026
2026.1.1.57 51 10/2/2026
2026.1.1.56 65 10/1/2026
2026.1.1.55 129 9/30/2026