Figure
The purpose of an HTML figure is for grouping a single image and corresponding caption content together, as one unit. So rather than having a paragraph or sentence of text going adrift underneath an image, the figure tag helps semantically to keep things better organised, within the page structure. This can bring positive benefits for accessibility and SEO. The figure snippet here combines an image element with a short text element. Therefore all the content inside the figure is editable. Figures are good to use for charts and illustrations.
Example
HTML & PHP
<figure>
<?php webyep_image("Figure Image", false, '', '', '', 0, 0, false, 70, 90, 600, 270); ?>
<figcaption>
<?php webyep_longText("Figure Caption", false, 550, 240); ?>
</figcaption>
</figure>
CSS
figure {
border: 1px solid #ccc;
padding: 0.5rem;
}
Javascript