5. Activities and exercises#
OU-XML supports a range of styled activity types, including activities, exercises, SAQs and ITQs.
5.1. Activities#
Activities have two parts - the activity, and the activity answer.
In ou0book-theme
, activities are defined as:
```{ou-activity} Activity 1
:timing: 1 hour
Do something...
```
Do something…
Activities can optionally include an answer:
````{ou-activity} Activity 2
Do something else...
```{ou-answer}
Here is the second activity answer.
And *more* bits of answer.
```
````
Do something else…
Here is the second activity answer.
And more bits of answer.
Ideally we should also have an identifier, not least so we can provide a cross-reference link to the activity.
5.2. Exercises#
Do something…
Do something else…
Here is the second activity answer.
And more bits of answer.
We can also have a discussion block:
Do something else…
Here is the third exercise discussion.
And more bits of discussion.
Or an answer and a discussion block:
Do something else…
Here is the fourth exercise answer.
And more bits of answer.
Here is the fourth exercise discussion.
And more bits of discussion.