i

Learn HTML and CSS in 10 Days

Semantically Identifying Figures And Captions

HTML5 has introduced 2 elements i.e. and . They were made to mark up independent substance media or content semantically.

Figure

The is a block-level element that is used to identify and wrap independent content, generally in the form of media. It may be around videos, audio clips, blocks of code, illustrations, diagrams, or other self-contained media. Multiple items can also get contained inside the element.

Figure Caption

To sum up a legend or caption in a element, one should use the element. It can appear anywhere at the bottom, top inside the element.

It is not required that all forms should be enclosed in a or a element. Only those are included that are self-contained.