W3CValidator.NET is a .NET library to perform validation of CSS/(X)HTML documents, using WWW Consortium's web services.
NuGet package : https://www.nuget.org/packages/W3CValidator
It utilizes the following W3C services :
Support
This project needs your support for further developments ! Please consider donating.
Yandex.Money : 41001577953208
WebMoney (WMR) : R399275865890
W3C CSS Validation Service
ICssValidationResult result = Validator.Validate.Css().Document("body { color : white }");
ICssValidationResult result = Validator.Validate.Css().Url("http://www.w3.org/2008/site/css/minimum", request => request.Language("ru").Medium(CssMedium.All).Profile(CssProfile.Css2).Warnings(WarningsLevel.Important));
W3C Markup Validation Service
IMarkupValidationResult result = Validator.Validate.Markup().Url("http://wwww.w3.org");
IMarkupValidationResult result = Validator.Validate.Markup().Url("http://wwww.w3.org", request => request.Encoding(Encoding.UTF32));