HTML

Learn how Vale handles HTML content.

HTML5 support is built in. The supported extensions are .html, .htm, .shtml, and .xhtml.

By default, Vale ignores script, style, pre, code, and tt tags, as well as URLs (see URL handlingarrow-up-right for more information).

Vale supports comment-based configuration in HTML files:

  • Turn Vale off entirely:

<!-- vale off -->

This text will be ignored.

<!-- vale on -->
  • Turn off a specific rule:

<!-- vale Style.Redundancy = NO -->

This is some text ACT test

<!-- vale Style.Redundancy = YES -->
  • Turn off specific match(es) within a rule:

  • Turn on or off specific styles:

  • Set styles (enabling them and switching off any other styles):