Skip to content

void-content ​

Detect content inside void elements.

Severity ​

error

❌ Incorrect ​

html
<br>content</br>

✅ Correct ​

html
<br>

Reference ​

Configuration ​

json
{
  "rules": {
    "void-content": "error"
  }
}

Released under the MIT License.