DITA Resource Center

body

The <body> element is the container for the main content of a <topic>.

Contains

note

These models represent only the default document types distributed by OASIS. Actual content models will differ with each new document type.
Doctype Content model
topic (base) (dl or fig or imagemap or image or lines or lq or note or hazardstatement or object or ol or p or pre or simpletable or sl or table or ul or data or data-about or draft-comment or foreign or unknown or required-cleanup or bodydiv or example or section) (any number)
topic (technical content), concept, ditabase, glossary, glossentry, glossgroup, reference, task (dl or parml or fig or syntaxdiagram or imagemap or image or lines or lq or note or hazardstatement or object or ol or p or pre or codeblock or msgblock or screen or simpletable or sl or table or ul or data or data-about or draft-comment or foreign or unknown or required-cleanup or bodydiv or example or section) (any number)
machineryTask (dl or fig or imagemap or image or lines or lq or note or hazardstatement or object or ol or p or pre or screen or simpletable or sl or table or ul or data or data-about or draft-comment or foreign or unknown or required-cleanup or bodydiv or example or section) (any number)
learningAssessment, learningContent, learningOverview, learningPlan, learningSummary (dl or fig or imagemap or lcInteractionBase or lcTrueFalse or lcSingleSelect or lcMultipleSelect or lcSequencing or lcMatching or lcHotspot or lcOpenQuestion or image or lines or lq or note or lcInstructornote or object or ol or p or pre or simpletable or sl or table or ul or data or data-about or draft-comment or foreign or unknown or required-cleanup or bodydiv or example or section) (any number)

Contained by

Doctype Content model
topic (base), topic (technical content), concept, ditabase, glossary, glossentry, glossgroup, reference, task (strict), task (general), machineryTask, learningAssessment, learningContent, learningOverview, learningPlan, learningSummary topic

Inheritance

- topic/body

Example

<topic>
<title>Sample title</title>
<prolog><!-- metadata here --></prolog> 
<body> <!-- Body content goes here --> </body> 
</topic> 

Attributes

Name Description Data Type Default Value Required?
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups) A set of related attributes, described in univ-atts attribute group
global-atts attribute group (xtrf, xtrc) A set of related attributes, described in global-atts attribute group
class, outputclass Common attributes described in Other common DITA attributes

Was this page helpful?