Close this window

Using the <definition> tag

Description

The definition tag is used to define a word or a term.

Example

This CNXML:


<definition id='quarter-def'>
  <term>quarter</term>
  <meaning id="meaning-part">
    One fourth of something.
  </meaning>
  <example id='quarter-ex-1'>
    <para id='quarter-para-1'>
      "He cut the pie into quarters and 
      gave all four people a piece."
    </para>
  </example>
  <meaning id="meaning-money">
    25 cents; a quarter of a dollar.
  </meaning>
  <seealso>
    <term>dollar</term>
    <term>penny</term>
  </seealso>
</definition>
        

Results in this display:

Definition 1: quarter
1. One fourth of something.

Example

"He cut the pie into quarters and gave all four people a piece."

2. 25 cents; a quarter of a dollar.
See Also: dollar, penny

Attributes(what's this?)

Children(what's this?)

First, definition may contain an optional label tag. Next, it must contain a single term tag. Then, it must contain one or more meaning tags, followed in turn by any optional example tags associated with that meaning. Finally, definition may contain an optional seealso tag.

Parents(what's this?)

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