Close this window

Using the <example> tag

Description

The example tag is used to contain an example of something. This is especially useful in connection with the definition tag where it can be used to give an example of the meaning of a term.

Example

This CNXML:


<example id="lincoln-example">
  <para id="lincoln-para">
    The Lincoln Memorial is an example of a monument.
  </para>    
</example>
        

Results in this display:

Example 1

The Lincoln Memorial is an example of a monument.

Attributes(what's this?)

Children(what's this?)

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

Parents(what's this?)

content, section, preformat, para, quote, footnote, note, item, example, problem, solution, commentary, definition, meaning, rule, statement, proof, entry
Close this window