In HTML5 the ............ element is used to include images, graphs and…

2022

In HTML5 the ............ element is used to include images, graphs and compound objects that contain text and images in webpage.

  1. A.

    <figure>

  2. B.

    <fig>

  3. C.

    <photo>

  4. D.

    <pic>

Attempted by 87 students.

Show answer & explanation

Correct answer: A

The <figure> element is used to group self-contained content such as:

Images
Graphs
Diagrams
Charts
Code snippets
Compound objects containing text and images

It is often accompanied by a caption using the <figcaption> element.

Example:

Therefore, the correct answer is:

Answer: A) <figure>

Explore the full course: Hpsc Pgt Computer Science