requires elements to be explicitly closed (no-implicit-closed)

Some elements in HTML has optional end tags. When an optional tag is omitted a browser must handle it as if the end tag was present.

Omitted end tags can be ambigious for humans to read and many editors have trouble formatting the markup.

Rule details

Examples of incorrect code for this rule:

<ul>
    <li>foo
    <li>bar
    <li>baz
</ul>
2:6 - Element <li> is implicitly closed by sibling
3:6 - Element <li> is implicitly closed by sibling
4:6 - Element <li> is implicitly closed by parent </ul>

<p>lorem ipsum
<p>dolor sit amet
1:2 - Element <p> is implicitly closed by sibling

<p>
    <div>lorem ipsum</div>
</p>
1:2 - Element <p> is implicitly closed by adjacent <div>

Examples of correct code for this rule:

<ul>
     <li>foo</li>
     <li>bar</li>
     <li>baz</li>
</ul>

<p>lorem ipsum</p>
<p>dolor sit amet</p>