View video tutorial

HTML <figcaption> Tag

HTML

The <figcaption> tag defines a caption for the <figure> element.

HTML <figcaption> Tag


The <figcaption> tag represents a description for a <figure> element.

The <figcaption> element must be the first or last child of its parent <figure> element.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

  <figure>
    <img src="box.png" alt="Structure" style="width:50%">
    <figcaption>Fig.1 - A nice metal structure.</figcaption>
  </figure>
Try it Now »

Click on the "Try it Now" button to see how it works.