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:
<!-- closed in wrong order -->
<p><strong></p></strong>
<!-- opened but not closed -->
<div>
<!-- closed but not opened -->
</div>
Examples of correct code for this rule:
<p><strong></strong></p>
<div></div>