---
title: "HTML Graphics tags: map tag, picture tag, and figure tag"  
description: "Let's explore the map tag, picture tag, and figure tags and their usage, attributes, and examples."  
author: "Ashutosh Patel"  
published: 2025-03-25  
updated: 2025-03-25  
canonical: https://www.mindstick.com/articles/338869/html-graphics-tags-map-tag-picture-tag-and-figure-tag  
category: "html"  
tags: ["html", "html tags", "html graphics"]  
reading_time: 3 minutes  

---

# HTML Graphics tags: map tag, picture tag, and figure tag

Let's explore the `<map>`, `<picture>`, and `<figure>` tags, their usage, [attributes](https://www.mindstick.com/interview/34453/what-are-attributes-in-dot-net), and examples.

**1.** `<map>` **Tag (Image Mapping)**

The `<map>` tag is used to create an **image map**, which allows users to click on different parts of an image and navigate to different links.

## Syntax

```html
<map name="mapName">
   <area shape="rect" coords="34,44,270,350" href="page1.html" alt="First Area">
   <area shape="circle" coords="337,300,44" href="page2.html" alt="Second Area">
</map>
<img src="image.jpg" usemap="#mapName" alt="Clickable Image">
```

## Attributes

- `name`: Provides a name to the map (linked to `usemap`).
- `usemap`: Links the image to the map using `#mapName`.

`<area>` **Tag Attributes**

| **[Attribute](https://www.mindstick.com/interview/1137/what-is-attributes-and-reflection-in-c-sharp)** | **Description** |
| --- | --- |
| `shape` | Defines clickable shape (`rect`, `circle`, `poly`). |
| `coords` | Specifies coordinates of the area. |
| `href` | Link to a destination. |
| `alt` | Alternate text for accessibility. |

**Example:** Clickable Areas on an Image

```html
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>HTML Map tag Example</title>
</head>
<body>
 <div>
 <img src="https://www.mindstick.com/Images/businessImages/business-help.jpg" usemap="#worldmap" width="500" height="300">
 <map name="worldmap">
     <area shape="rect" coords="50,50,150,150" href="https://www.google.com" alt="Google">
     <area shape="circle" coords="300,100,50" href="https://www.wikipedia.org" alt="Wikipedia">
 </map>
 </div>
</body>
</html>
```

## Note:

- `rect` (**rectangle**) requires four coordinates (x1, y1, x2, y2).
- `circle` requires three (x, y, radius).
- `poly` (**polygon**) requires many (x1, y1, x2, y2, x3, y3, ...).

**2.** `<picture>` **Tag ([Responsive Images](https://answers.mindstick.com/qa/112151/how-do-i-implement-responsive-images-to-cater-to-different-screen-sizes))**

The `<picture>` tag allows you to define [multiple](https://www.mindstick.com/forum/33991/how-to-use-multiple-ng-app-in-a-single-page) [versions](https://answers.mindstick.com/qa/49863/list-the-versions-of-mac-os-x) of an image for different screen sizes or formats.

## Syntax

```html
<picture>
   <source srcset="small.jpg" media="(max-width: 600px)">
   <source srcset="medium.jpg" media="(max-width: 1000px)">
   <img src="large.jpg" alt="Responsive Image">
</picture>
```

## Attributes

- `srcset`: It defines the image file to be used.
- `media`: It specifies the conditions under which the image is displayed.

**Example:** Responsive Image with Different Sizes

```html
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>Responsive Image Example</title>
</head>
<body>
 <div>
  <h3>Image will change automatically based on screen size</h3>
 <picture>
     <source srcset="https://www.mindstick.com/Images/mindstick-logo.png" media="(max-width: 600px)">
     <source srcset="https://www.mindstick.com/Images/businessImages/drive-traffic.jpg" media="(max-width: 1200px)">
     <img src="https://www.mindstick.com/Images/businessImages/business-help.jpg" alt="Responsive image">
 </picture>
 </div>
</body>
</html>
```

- **Note:**\ The first matching `source` is displayed.
- The `img` tag serves as a fallback.
- Improves performance by providing smaller images for [mobile users](https://answers.mindstick.com/qa/105139/how-to-optimize-business-websites-for-mobile-users).

**3.** `<figure>` **Tag (Captioned Content)**

The `<figure>` tag is used to group images, illustrations, videos, or diagrams with captions.

## Syntax

```html
<figure>
   <img src="nature.jpg" alt="A Beautiful Nature Scene">
   <figcaption>A beautiful sunset in the mountains.</figcaption>
</figure>
```

## [Elements](https://yourviews.mindstick.com/story/1372/the-5-elements-of-nature)

| **Elements** | **Description** |
| --- | --- |
| `<figure>` | Groups [media content](https://www.mindstick.com/forum/156239/what-type-of-social-media-content-converts-best) (images, videos, etc.). |
| `<figcaption>` | Provides a **caption** for the content. |

**Example:** Image with Caption

```html
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>HTML Figure tag Example</title>
</head>
<body>
 <div>
  <figure>
     <img src="https://www.mindstick.com/Images/businessImages/drive-traffic.jpg" alt="drive-traffic">
     <figcaption>Sunset view at the beach</figcaption>
 </figure>
 </div>
</body>
</html>
```

**Example:** Video with Caption

```html
<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>HTML Figure tag Example</title>
</head>
<body>
 <div>
  <figure>
     <video controls>
         <source src="https://cdn.pixabay.com/video/2022/09/03/130062-746154306_tiny.mp4" type="video/mp4">
     </video>
     <figcaption>Beautiful ocean waves in slow motion.</figcaption>
 </figure>
 </div>
</body>
</html>
```

## Notes:

- `<figcaption>` is [optional](https://www.mindstick.com/interview/22851/main-difference-between-optional-and-required-keywords), but improves accessibility.
- It helps group related media elements in an article or blog.

Also, read: [HTML Graphics using HTML](https://www.mindstick.com/articles/336067/html-graphics-using-html)

---

Original Source: https://www.mindstick.com/articles/338869/html-graphics-tags-map-tag-picture-tag-and-figure-tag

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
