Menu
HTMLHint LogoHTMLHintDocsPlaygroundGitHub
HTMLHint LogoHTMLHint
  • Docs
  • Playground
  • GitHub
  • User guide
    • Getting Started
    • Configuration
    • Rules
      • List of rules
      • Individual rules
        • alt-require
        • attr-no-duplication
        • attr-lowercase
        • attr-unsafe-chars
        • attr-value-double-quotes
        • attr-value-not-empty
        • doctype-first
        • empty-tag-not-self-closed
        • head-script-disabled
        • href-abs-or-rel
        • id-class-ad-disabled
        • id-class-value
        • id-unique
        • inline-script-disabled
        • inline-style-disabled
        • space-tab-mixed-disabled
        • spec-char-escape
        • src-not-empty
        • style-disabled
        • tag-pair
        • tagname-lowercase
        • title-require
    • Usage
      • Command Line Interface (CLI)
      • Options
    • Integrations
      • Editor integrations
      • Task runners

tag-pair

Tag must be paired.

Level: error

#Config value

  1. true: enable rule
  2. false: disable rule

The following pattern are not considered violations:

<ul><li></li></ul>

The following pattern is considered violation:

<ul><li></ul>
<ul></li></ul>
Edit this page
Last updated on 5/18/2020 by David Dias
Previous
« style-disabled
Next
tagname-lowercase »
  • Config value

Community

  • Stack Overflow
  • Discord
  • Twitter

More

  • HTMLHint organization
2021 HTMLHint. Built with Docusaurus.