<answer>

The <answer> tag is optionally part of a structured <example>-like, <project>-like, or <exercise>. It contains more direct information than a <hint> but isn’t a complete <solution>. The visibility and knowling behavior of hints, answers, and solutions can be controlled separately from the statement of the exercise, example, or project at the document level via the publication file.

Syntax

Attributes

Attributes for <answer>
AttributeRequired?Values
component = "…"optionalstring
label = "…"optionalstring
xml:base = "…"optionalstring
xml:id = "…"optionalstring
xml:lang = "…"optionalstring

Children

The following may appear as children:<aside> <biographical> <blockquote> <console> <figure> <historical> <idx> <image> <list> <listing> <p> <pre> <program> <proof> <sage> <sbsgroup> <sidebyside> <table> <tabular> <title> <video>

Parents

This element may appear as an immediate child of the following elements: <activity> <example> <exercise> <exploration> <investigation> <problem> <project> <question> <task>

Examples

An <example> structured with statement, hint, answer, and solution

Answers can also go on individual tasks of a highly structured project or exercise