Posted by

Vincenzo Rubano
on · one minute reading.

HTML_CodeSniffer is a JavaScript library designed to be “injected” within any web page to “Check that your HTML code conforms to your coding standard”. Once executed, it checks the source code of a web page looking for “violations” of a given coding standard.

The library includes support for both Web Content Accessibility Guidelines (WCAG) and Section 508 of the U.S. Rehabilitation Act, but can also be extended to support additional coding standards (by means of so-called “sniffs”).

Accessibility evaluation results are classified as errors, warnings and notices: the latter consist of manual checks that you should do “manually” to verify aspects that the script cannot test automatically. HTML_CodeSniffer Web Page also provides an interactive demo in which you can enter a code fragment (or even the code of an entire page) to evaluate it using the tool.

Filed under: