How to use <figure> tag?

A figure is a unit of content, optionally with a caption.

The figure element can optionally contain a figcaption element.  marks a caption for the figure.

 

Example

 

 

 

     

        Listing 1. Caption text 

        

           This is the content of the figure.