Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Offline html5 validator

I would like to pass a few pages of a web application we are building through an HTML5 validator. I found several "online" validation tools available, but for privacy reasons I would rather not upload our pages for checking.

Do you know any offline HTML5 validation tool / library?

like image 435
E.Z. Avatar asked Jan 22 '14 12:01

E.Z.


People also ask

How do I check if HTML is valid?

The World Wide Web Consortium provide a simple online tool (https://validator.w3.org/) that automatically check your HTML code and point out any problems/errors your code might have, such as missing closing tags or missing quotes around attributes.

How do I validate HTML in Chrome?

HTML Validator. If you're tired of cutting and pasting the URL to the web page that you want to validate, simply click on this extensions browser icon and be taking to a fully HTML Validated page. Uses the W3 Validator web page.

What is a HTML 5 Validator?

The basic idea behind HTML5 validation is, that you tell the browser which fields you want validated but don't actually do the tedious implementation yourself. As you define what state your input field is in you also asks the browser to validate the field client-side based on the type of input field.


2 Answers

You can download a vnu.jar release for checking HTML5 documents offline. See https://github.com/validator/validator/releases/latest for the actual download file, and see https://validator.github.io/validator/ for more information

like image 62
sideshowbarker Avatar answered Oct 14 '22 06:10

sideshowbarker


So far W3C has only published the DTD up to HTML 4.01.

Download libs: http://validator.w3.org/sgml-lib.tar.gz

In September 2012, the W3C proposed a plan (wikipedia.org) to release a stable HTML5 Recommendation by the end of 2014 and an HTML 5.1 specification Recommendation by the end of 2016.

Therefore I believe that the libs for HTML5 are coming this year.

Meanwhile you can use an unofficial DTD file, available here: http://www.cs.tut.fi/~jkorpela/html5-dtd.html

like image 1
Guilherme Nascimento Avatar answered Oct 14 '22 05:10

Guilherme Nascimento