Close this window

Using the <caption> tag

Description The caption tag is only used to provide a caption for a figure, subfigure, or a table. You can enter a somewhat lengthy description of the figure with the caption tag. In contrast, using the name tag you can enter only a brief title or label that appears above a figure.
Example
This CNXML:
<figure id="fig1">
  <name>A Happy Dog</name>
  <media type="image/jpeg" src="image1.jpg"/>
  <caption>The dog displayed in this picture 
  is enjoying a comfortable bed.</caption>
</figure>
	
Results in this display:
A Happy Dog
Figure 1: The dog displayed in this picture is enjoying a comfortable bed.
Attributes (what's this?)
Children (what's this?)emphasis, code, term, cite, cnxn, link, foreign, quote, Unicode text
Parents (what's this?)figure, subfigure, table
Close this window