The <figure> element is used to specify the container (self-contained) where we want to place images, illustrations, drawings, specifications, etc? Because this is a self-contained block, removing it from the flow will not (should not) affect the document's flow.

Syntax:

<figure></figure>

Attributes:

NOTE: To add caption to a figure, use <figcaption> element.

Example

The figure tag example with an image:

 

›› go to examples ››