HTML Code Generators
Choose a generator, preview the result, and copy ready-to-use HTML or C# code.
Create HTML Code Online
HTML Code Generators create ready-to-copy markup for common elements and controls. Select a task, configure only the options you need, and inspect the preview, HTML output, and C# output before using the result in a webpage or .NET project.
HTML Generators by Task
Choose a generator by task. Each tool lets you configure an HTML element, inspect the result, and copy the generated HTML or C# code.
Media, Links & Embeds
Forms & Input Controls
- HTML Button Generator
- HTML Checkbox Generator
- HTML Radio Button Generator
- HTML Text Input Generator
- HTML Textarea Generator
- HTML Email Input Generator
- HTML Telephone Input Generator
- HTML URL Input Generator
- HTML Search Input Generator
- HTML Password Input Generator
- HTML Number Input Generator
- HTML Range Input Generator
- HTML Color Input Generator
- HTML Date & Time Input Generator
- HTML File Input Generator
- HTML Image Input Generator
- HTML Submit Input Generator
Tables, Lists & Interactive
Text Semantics & Formatting
Create HTML Elements in C#
Every generator also produces C# code for the selected element. The generated example uses Aspose.HTML for .NET and follows the same basic DOM workflow:
- Create an
HTMLDocument. - Create the required element with
Document.CreateElement(). - Apply the attributes, text, and CSS properties selected in the generator.
- Add the element to the document with
Node.AppendChild()and save the completed HTML file withHTMLDocument.Save().
Open a generator first, configure the element, and then copy its updated C# output into your .NET project.
Get Started with Aspose.HTML for .NET API
Install Aspose.HTML for .NET from NuGet with the .NET CLI:
dotnet add package Aspose.HTML
You can also use the NuGet Package Manager UI or run Install-Package Aspose.HTML in the Package Manager Console. See the
installation guide
for setup details, or request a
temporary license
to evaluate the API without evaluation limitations.
Other Aspose.HTML for .NET Features
Convert, merge, edit, and analyze HTML documents with Aspose.HTML for .NET: