JNIsolutions.Net.HTMLlib 1.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package JNIsolutions.Net.HTMLlib --version 1.1.3
                    
NuGet\Install-Package JNIsolutions.Net.HTMLlib -Version 1.1.3
                    
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="JNIsolutions.Net.HTMLlib" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JNIsolutions.Net.HTMLlib" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="JNIsolutions.Net.HTMLlib" />
                    
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 JNIsolutions.Net.HTMLlib --version 1.1.3
                    
#r "nuget: JNIsolutions.Net.HTMLlib, 1.1.3"
                    
#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 JNIsolutions.Net.HTMLlib@1.1.3
                    
#: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=JNIsolutions.Net.HTMLlib&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=JNIsolutions.Net.HTMLlib&version=1.1.3
                    
Install as a Cake Tool

HTML Document Generator

This is a .NET Core project written in C# that generates an HTML formatted document. The project allows users to create HTML documents programmatically.

Features

  • Create HTML documents with custom content
  • Add HTML elements such as headings, paragraphs, lists, and more
  • Easy to extend and customize

Getting Started

Prerequisites

  • .NET Core SDK 7.0 or later

Example

Here is an example of how to use the HtmlDocumentGenerator class to create an HTML document:

using HtmlDocumentGenerator;

class Program
{
    static void Main(string[] args)
    {
        var document = new HtmlDocument();
        Meta meta = new Meta
        {
            Name = "viewport",
            Content = "width=device-width, initial-scale=1"
        };
        htmlDocument.Head.Tags.Add(meta);
        htmlDocument.Head.Tags.Add(new Title("HTML Test Page"));
        Link link1 = new Link
        {
            Rel = "stylesheet",
            Href = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
        };
        link1.Elements.Add("Integrity", "sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN");
        link1.Elements.Add("CrossOrigin", "anonymous");
        htmlDocument.Head.Tags.Add(link1);

        Hgroup hgroup = new Hgroup();
        hgroup.Keywords.Add(new Heading("Welcome to this Test Page", 1));
        hgroup.Keywords.Add(new Para("I like developing web pages"));
        htmlDocument.Body.Tags.Add(hgroup);

        // Now that we have done all of the work, save the results to a file...
        Console.WriteLine(htmlDocument.ToString());

        string htmlFilePath = @"C:\Temp\TestHTML.html";
        File.WriteAllText(htmlFilePath, htmlDocument.ToString());
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0.1 112 5/23/2026
1.3.0 107 5/23/2026
1.2.0 114 5/23/2026
1.1.8 170 11/9/2025
1.1.6 202 10/21/2025
1.1.5 184 10/21/2025
1.1.4 220 8/8/2024
1.1.3 140 7/29/2024
1.1.2 184 7/17/2024
1.1.1 189 7/17/2024

At this stage not all HTML tags are implemented, but the commonly used ones are available. Future versions will progressively implement more tags.