Elements must be properly nested, should not overlap, and therefore must be closed in the opposite order as they were open.