Close this window

Using the <solution> tag

Description The solution tag is used to reveal the answer to a question presented 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="solutionexample">
  <problem>
    <para id="prob_1">
      What is the capital of Texas?
    </para>
  </problem>
  <solution>
    <para id="sol_1">
      Austin is the capital of Texas.
    </para>
  </solution>
</exercise>
	
Results in this display:
Problem 1
What is the capital of Texas?
[ Click for Solution 1 ]
Attributes (what's this?)
Children (what's this?)name (one, optional), example, para, code, section, definition, rule, figure, media, table, list, exercise, equation, note
Parents (what's this?)exercise
Close this window