Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including html-lint with all npm packages installed. Try it out:

var htmlLint = require("html-lint")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

html-lint v2.4.1

A code quality bookmarklet and command-line tool.


HTML-Lint is a tool designed to supplement HTML validation by identify coding practices that pass validation, but are less than ideal.

How to Use:

Option 1: Bookmarklet

  1. Copy the code below:
javascript: (function(){'use strict';var script = document.createElement('script');script.src = ''; = 'html-lint-js';document.body.appendChild(script);}());
  1. Create a new bookmark.
  2. Set the name to “HTML-Lint” and paste the above as the URL.

Option 2: CLI

Sample verbose output

Available on NPM: npm install html-lint -g.


html-lint <url> <filename>


--strict     Return a non-zero exit code if lint errors are found
--verbose    Enable verbose output


html-lint --verbose
html-lint foo


Getting Started

  1. Have the following requirements installed: Node, NPM, and PhantomJS
  2. Clone the repo: git clone
  3. Run npm install
  4. Run gulp


  • gulp → compiles Sass to CSS, concatenates JS, minifies CSS and JS, and watches
  • gulp watch → runs default gulp task and then watches for changes


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free