This gist repository contains C# examples that accompany the Web Accessibility chapter in the Aspose.HTML for .NET documentation. These examples demonstrate how to validate HTML content for accessibility according to the WCAG standard and identify errors and warnings to improve them.
The repository contains examples illustrating how to:
- Check web documents against WCAG standards using built-in validators and accessibility rule sets.
- Check for missing alternative text in image elements.
- Evaluate color contrast and compare it to accessibility standards.
- Evaluate multimedia elements to ensure compliance with accessibility guidelines.
- Create reports describing accessibility violations found in an HTML document.
- Configure accessibility checking and use rule sets to control the level and focus of analysis.
- Query accessibility principles, guidelines, and criteria using the Aspose.HTML API.
- Install the latest Aspose.HTML for .NET via NuGet.
- Explore the gists in this repository and copy the relevant code to your project.
- Configure paths, settings, and inputs to suit your environment.
- Run your project to see the example in action.
You can download a free trial of Aspose.HTML for .NET and use a temporary license for unrestricted access.
Detailed explanations and full context for each example can be found in the Web Accessibility sections of the official documentation.
- Documentation – Aspose.HTML for .NET
- Product page – Aspose.HTML for .NET
- Blog – Aspose.HTML Product Family
- API Reference – Aspose.HTML for .NET
- NuGet Package – Aspose.HTML for .NET
- Free Online Web Accessibility Checker – Aspose.HTML
To run the examples, you need:
- .NET Platforms: .NET Platforms: .NET 5.0, .NET Framework 4.6.1+, or .NET Core 2.0+
- Supported OS: Windows, Linux, macOS
- The Aspose.HTML for .NET library (you can install it via NuGet:
Install-Package Aspose.Html).