To get a block element in the correct position in a hierarchy, you might have to force the opening of interpolated ancestor elements first; or, in some cases, specify elements that must be opened after the current element ends.
§17.5.9.1 Starting ancestor elements before the current block
§17.5.9.2 Starting a new hierarchy after the current block