Docs
Formats
HTML
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 we all URLs (see URL handling for more information).
Comments
Vale supports comment-based configuration in HTML files:
Turn Vale off entirely:
htmlCopy <!-- vale off --> This text will be ignored. <!-- vale on -->
Turn off a specific rule:
htmlCopy <!-- vale Style.Redundancy = NO --> This is some text ACT test <!-- vale Style.Redundancy = YES -->
Turn off specific match(es) within a rule:
htmlCopy <!-- vale Style.Redundancy["ACT test","OTHER"] = NO --> This is some text ACT test <!-- vale Style.Redundancy["ACT test","OTHER"] = YES -->
Turn on or off specific styles:
htmlCopy <!-- vale StyleName1 = YES --> <!-- vale StyleName2 = NO -->
Set styles (enabling them and switching off any other styles):
htmlCopy <!-- vale style = StyleName1 --> <!-- vale styles = StyleName1, StyleName2 -->
On This Page