<example>
The <example>
tag creates a container for the presentation of an example.
The <title>
element is optional but encouraged, and the
structure can contain multiple <hint>
s, <answer>
s, and
<solution>
s (in that order).
Other tags which have the
same attributes and structure as the <example>
tag include:
<problem>
and <question>
.
Syntax
Attributes
Attribute | Required? | Values |
---|---|---|
component = "…" | optional | string |
label = "…" | optional | string |
xml:base = "…" | 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:<appendix>
<article>
<chapter>
<conclusion>
<introduction>
<paragraphs>
<section>
<subsection>
<subsubsection>