tagname-specialchars
Tagname must not contain any characters beside letters, numbers, ”-”, ”:” or ”_”.
Level: Error
Config value
Section titled “Config value”true
: enable rulefalse
: disable rule
The following patterns are not considered rule violations
Section titled “The following patterns are not considered rule violations”<a href=""></a><span>test</span>
The following patterns are considered violation:
Section titled “The following patterns are considered violation:”<@ href="link"></@><$pan>aab</$pan>
Why this rule is important
Section titled “Why this rule is important”Tagnames should only contain allowed characters to ensure consistency and readability.
Further reading: HTML5 Specification - Tag names