disallows elements closed in the wrong order (close-order)

HTML requires elements to be closed in the correct order.

Rule details

Examples of incorrect code for this rule:

<p><strong></p></strong>
1:13 - Mismatched close-tag, expected '</strong>' but found '</p>'.
1:17 - Mismatched close-tag, expected '</p>' but found '</strong>'.

Examples of correct code for this rule:

<p><strong></strong></p>