?Explain figure and figure caption elements.

What will be an ideal response?

The figure element is used to group content, such as illustrations, diagrams, and photos. According to the World Wide Web Consortium (W3C), the figure element "represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document." Though thefigureelement is commonly used to contain images, it can also display a chart, graph, or table. One should not confuse thefigureelement with theimg element.

Thefigureelement is a semantic element with self-contained content. Afigureelement can contain one or moreimg elements.

Thefigureelement may contain an optional figure caption element, which is used to provide a caption for the figure element. Thefigure captionelement uses a <figcaption>tag as the starting tag and a figcaption> tag as the ending tag. The following is an example of thefigureelement and thefigure captionelement.

?

    

New York City Highlights

     Statue of Liberty

     Central Park

     New York at Night

?



Computer Science & Information Technology

You might also like to view...

Facebook contains a geolocation application, called Facebook ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Mark as Final and Encrypt with Password are two ________ options

A) Defensive Actions B) Protect Presentation C) Presentation Security D) Lock Presentation

Computer Science & Information Technology