<task>
The <task>
element is the top-level
element for a task topic. Task topics provide the instructions that guide people to
perform a task.
Usage information
The OASIS DITA Technical Committee distributes two document-type shells for task topics: general task and strict task.
- General task
- Has a more relaxed content model. It allows
<section>
and<steps-informal>
inside of the task body; it also allows multiple instances and varying order for the elements that make up the task body. - (Strict) task
- Maintains a strict order and cardinality for elements within the
<taskbody>
content model. The strict task is implemented with a constraint module.
Specialization hierarchy
The <task>
element is specialized from <topic>
.
It is defined in the task module.
Attributes
The following attributes are available on this element: architectural attributes and universal attributes.
For this element, the @id
attribute is
required.
Example
The following code sample shows that <task>
is the topic-level element for a task topic:
<task id="learn-dita">
<title>Learning DITA</title>
<!-- ... -->
</tas k>