Skip to content

tagname-lowercase

Tagname must be lowercase.

Level: Error

  • true: enable rule
  • false: disable rule
  • ['clipPath', 'data-Test']: enable rule except for the given tag names. All SVG camelCase elements are included, for example linearGradient, foreignObject

The following patterns are not considered rule violations

Section titled “The following patterns are not considered rule violations”
<span><div>

SVG elements with camelCase names (e.g. linearGradient, foreignObject) are allowed:

<svg><linearGradient /><foreignObject /><textPath /></svg>

The following pattern is considered a rule violation:

Section titled “The following pattern is considered a rule violation:”
<SPAN><BR>

Lowercase tagnames typically have higher compression rates compared to uppercase tagnames allowing for slightly faster page loads. Lowercase tagnames are also more readable and easier to understand.