Close this window

Using the <figure> tag

Description

The figure tag is used to provide the structure for inserting a figure into a CNXML document. A figure may contain an image, multimedia object, or caption tag.

Example

This CNXML:


<figure id="cute-dog">
  <title>The World's Cutest Dog</title>
  <media id="dogpic" alt="A dog sitting on a bed">
    <image mime-type="image/jpeg" src="image1.jpg" />
  </media>
  <caption>
     Notice how cute the dog is just sitting there.
  </caption>
</figure>
        

Results in this display:

Figure 1: Notice how cute the dog is just sitting there.
The World's Cutest Dog
A dog sitting on a bed

Attributes(what's this?)

Children(what's this?)

First, figure may contain an optional label tag, followed by an optional title tag. Next, it must contain: Finally, figure may contain an optional caption tag.

Parents(what's this?)

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