Close this window

Using the <subfigure> tag

Description The subfigure tag is used when you want to include multiple figures, tables, or blocks of code within a single figure tag. You should use the subfigure tag only if the subfigures are related and you want to display them together. The subfigure tag is similar to the figure tag, except that it cannot contain another subfigure tag.
Example
This CNXML:
<figure id="fig1" orient="horizontal">
  <name>A Happy Dog</name>
  <subfigure id="subfig1">
    <media type="image/jpeg" src="image1.jpg"/>
  </subfigure>
  <subfigure id="subfig2">
    <media type="image/jpeg" src="image1.jpg"/>
  </subfigure>
</figure>
	
Results in this display:
Subfigure 2.1
Subfigure 2.2
Figure 2
Attributes (what's this?)
Children (what's this?) First, subfigure may contain an optional name tag. Next, it may contain a single media, table, or code tag. Finally, subfigure, may contain an optional caption tag.
Parents (what's this?)figure
Close this window