<task>
The <task> element is a subtask in a structured
<exercise>, <activity>, or
similar project-like element. Each <task> usually contains a
<statement> and may also include
<hint>, <answer>, or
<solution>.
Use <task> when a larger problem should be broken into explicit steps.
Syntax
Variants
There are 3 variants of <task>.
Attributes
| Attribute | Required? | Values |
|---|---|---|
component = "…" | optional | string |
label = "…" | optional | string |
workspace = "…" | optional | string |
xml:id = "…" | optional | string |
xml:lang = "…" | optional | string |
Children
The following may appear as children:<answer> <aside> <biographical> <blockquote> <conclusion> <console> <figure> <hint> <historical> <idx> <image> <introduction> <list> <listing> <p> <pre> <program> <sage> <sbsgroup> <sidebyside> <solution> <statement> <table> <tabular> <task> <title> <video> Parents
This element may appear as an immediate child of the following elements:<exercise> <sidebyside> <task> Attributes
| Attribute | Required? | Values |
|---|---|---|
component = "…" | optional | string |
label = "…" | optional | string |
workspace = "…" | optional | string |
xml:id = "…" | optional | string |
xml:lang = "…" | optional | string |
Children
The following may appear as children:<answer> <aside> <biographical> <blockquote> <conclusion> <console> <figure> <hint> <historical> <idx> <image> <introduction> <list> <listing> <p> <pre> <program> <sage> <sbsgroup> <sidebyside> <solution> <statement> <table> <tabular> <task> <title> <video> Parents
This element may appear as an immediate child of the following elements:<activity> <example> <exercise> <exploration> <investigation> <problem> <project> <question> <task> Attributes
| Attribute | Required? | Values |
|---|---|---|
component = "…" | optional | string |
label = "…" | optional | string |
xml:id = "…" | optional | string |
xml:lang = "…" | optional | string |
Children
The following may appear as children:<conclusion> <hint> <idx> <introduction> <solution> <statement> <task> <title> Parents
This element may appear as an immediate child of the following elements:<task> <webwork> Examples
<activity>
<title>Modeling Population Growth</title>
<task>
<statement>
<p>Estimate the initial population from the graph.</p>
</statement>
<answer><p>About 120 organisms.</p></answer>
</task>
</activity><exercise>
<title>Optimization</title>
<task>
<statement><p>Find the critical points.</p></statement>
<hint><p>Differentiate first.</p></hint>
</task>
<task>
<statement><p>Classify each critical point.</p></statement>
<solution><p>Use the second derivative test.</p></solution>
</task>
</exercise>