Close this window

Using the <solution> tag


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.



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

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?)

Close this window