The < Figcaption > Element

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

There are some attributes of <figcaption> element:-
Accesskey
Class
Contenteditable
Contextmenu
Dir
Draggable
Hidden
Id
Lang
Spellcheck
Style
Tabindex
Title
The <figcaption> element can be placed as the first or last child of the <figure> element.

Here we will illustrate an example putting the <figcaption> element in the script:

In this example we will use the above example which does not have any figure caption in it due to which a user is not able to understand which image stands for what.

  Code

 

 

 

 

 Output