Figure

<figure>
    <img src="/assets/images/aisha.jpg" alt="A black dog with white paws and a white chest lies on a grey couch with legs stretched out, head resting on a yellow pillow." width="1060" height="800" />
    <figcaption>A very lazy dog.</figcaption>
</figure>
<figure>
    <img src="{{ image }}" alt="{{ alt }}" width="{{ width }}" height="{{ height }}" />
    {% if caption -%}
    <figcaption>{{ caption }}</figcaption>
    {%- endif %}
</figure>
{
  "image": "/assets/images/aisha.jpg",
  "alt": "A black dog with white paws and a white chest lies on a grey couch with legs stretched out, head resting on a yellow pillow.",
  "width": 1060,
  "height": 800,
  "caption": "A very lazy dog."
}

Figure

A <figure> element contains an image or other media (such as an embedded video) and optionally includes a caption wrapped in a <figcaption> element.