Close this window

Using the <problem> tag

Description

The problem tag is used to present a question or task to the reader. The problem and optional solution tags appear inside the exercise tag to present a question or task and an answer, respectively, to the reader.

Example

This CNXML:


<exercise id="texas-exercise">
  <problem id="texas-problem">
    <para id="texas-problem-para">
      What is the capital of Texas?
    </para>
  </problem>
  <solution id="texas-solution">
    <para id="texas-solution-para">
      Austin is the capital of Texas.
    </para>
  </solution>
</exercise>
        

Results in this display:

Exercise 1

What is the capital of Texas?

Attributes(what's this?)

Children(what's this?)

label (one, optional), title (one, optional), section, definition, example, figure, code, preformat, quote, note, media, list, table, rule, equation, exercise, para

Parents(what's this?)

exercise
Close this window