#### 15.5.8.2 Ending ancestor elements after the current block

In some cases, it is not clear whether the end of a block element should also end the enclosing parent element. For example, if your document includes illustrations with the figure title above the image, body paragraphs following the image would normally be included in the <fig> element, because the content model allows <p> inside <fig>.

To close a parent element at the end of the current block element (for example):

[DITACloseAfter]

; Frame para format = parent to be closed, with any other elements

; nested under it, at the end of the current block element.

FigAnchor = fig

Use this setting to force closure of elements that were opened based on settings in [DITAParents]; see §15.5.2 Designating DITA ancestor elements. You can list as many possible ancestors as necessary; order is not important.

For individual cases, you can insert a DITACloseAfter marker in the paragraph for the current block element instead, with content the name(s) of the ancestor element(s) to close. You can also use a DITACloseAfter marker to override a [DITACloseAfter] setting when you want to close a higher (or lower) ancestor than the setting specifies.

| 15.5.8.1 Ending ancestor elements before the current block |  | 15.5.9 Opening DITA ancestor elements |