element name case (element-case)

Requires a specific case for element names.

Rule details

Examples of incorrect code for this rule:

<DIV>...</DIV>
error: Element "DIV" should be lowercase (element-case) at inline:1:2:
> 1 | <DIV>...</DIV>
    |  ^^^


1 error found.

Examples of correct code for this rule:

<div>...</div>

Options

This rule takes an optional object:

{
    "style": "lowercase"
}

Style