Element Type Match  
 
Text from specification

The Name in an element's end-tag must match the element type in the start-tag.

 
Explanation

Proper element nesting is strictly enforced, and every open tag must be matched by a corresponding close tag.