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='quardef'>
  <term>quarter</term>
  <meaning>
    One fourth of something.
  </meaning>
  <example id='defex1'>
    <para id='parex1'>
      "He cut the pie into quarters and gave 
      all four people a piece."
    </para>
  </example>
  <meaning>
    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 must contain a single term tag. Next, it must contain one or more meaning tags, followed in turn by any optional example tags associated with that meaning. Lastly, defition may contain an optional seealso tag.

Parents(what's this?)

para, glossary, content, section, example, meaning, proof, statement, problem, solution

Close this window