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
title tag you can enter only a brief title or label
that appears above a figure.
This CNXML:
<figure id="fig1">
<media id="dog-pic" alt="A dog sitting on a bed">
<image mime-type="image/jpeg" src="image1.jpg"/>
</media>
<caption>
This dog is sitting, unlike some dogs.
</caption>
</figure>
Results in this display:
![]() |