HTML <figcaption> Figure Caption Tag
Tags: learnhtml, htmlf
Published: 2021-05-10 05:40:30

---
title: HTML <figcaption> Figure Caption Tag
published: true
date: 2021-02-23 20:32:58 UTC
tags: LearnHTML,HTMLF
canonical_url: https://sharepointanchor.com/learn-html/html-figcaption-figure-caption-tag/
---

In HTML, the **<figcaption> Figure Caption tag** is **used to add the caption or title** to the content which is placed inside the HTML **<figure>** tag. It is placed as the **first or last child element of the <figure>** element. It is one of the **new sectioning elements** in **HTML 5**.

<svg aria-hidden="true" focusable="false" data-icon="clock" width="20" height="20" fill="none" stroke="currentColor" style="display:inline-block;vertical-align:-0.1em" role="img" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>Estimated reading time: 3 minutes

## Syntax:

This tag contains both a **starting <figcaption> tag** and **ending </figcaption> tag**. The content is written between these two tags.

```

<figcaption> caption of the image content </figcaption>

```

### HTML <figcaption> Tag Characteristics:
<style> th, td{ padding: 20px; } </style>

| HTML <figcaption> tag | It is used to provide a caption to an image content. |
| Content categories | None. |
| Permitted content | Flow content. |
| Tag omission | None, both opening and closing tags are mandatory. |
| Permitted parents | A <figure> element; The <figcaption> tag must be its first or last child |
| Implicit ARIA role | No corresponding role |
| Permitted ARIA roles | Group, none, presentation. |
| DOM interface | HTML Element |

## Sample of the HTML <figcaption> Tag:

```

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
   <h3>Example of HTML <figcaption> Tag</h3>
    <p>Share Point Anchor</p>
    <figure>
      <img src="https://sharepointanchor.com/wp-content/uploads/2021/01/SPA-LOGO.png">
	<figcaption>SPA-Logo Image </figcaption>
    </figure>
  </body>
</html>

```

## Result:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/Result-33.png)<figcaption>Result</figcaption>

### Download Sample File:

[HTML-figcaption-Tag](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-figcaption-Tag.html)[Download](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-figcaption-Tag.html)

## Attributes:

The HTML <figcaption> tag supports both **Global Attributes** and **Event Attributes**.

## Styling Methods for <figcaption> Tag:

You can use the following properties to style an HTML figure caption tag.

### Properties to style the visual weight/emphasis/size of the text in <figcaption> tag:

- **CSS font-style** – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.
- **CSS font-family** – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.
- **CSS font-size** – This CSS property will help to set the size of the font.
- **CSS font-weight** – This CSS property used to define whether the font should be bold or thick.
- **CSS text-transform** – This CSS property will control the text case and capitalization.
- **CSS test-decoration** – This CSS property specifies the decoration added to text such as **text-decoration-line** , **text-decoration-color** , **text-decoration- style**.

### Styles to coloring the text in <figcaption> Tag:

- **CSS color** – This CSS property will specify the color of the text content and decorations.
- **CSS background-color** – This CSS property helps to set the background color of an element. 

### Text layout styles for <figcaption> Tag:

- **CSS text-indent** – This CSS property is used to specify the indentation of the first line in a text block.
- **CSS text-overflow ** – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.
- **CSS white-space** – This CSS property describes how white-space inside an element is handled.
- **CSS word-break**  – This CSS property decides where the lines should be broken.

### Other Properties for <figcaption> Tag:

- **CSS text-shadow**  – This CSS property helps to add the shadow to text.
- **CSS text-align-last**  – This CSS property will set the alignment of the last line of the text.
- **CSS line-height** – This CSS property defines the height of a line.
- **CSS letter-spacing** – This CSS property helps to decide the spaces between letters/characters in a text.
- **CSS word-spacing** – This CSS property specifies the spacing between every word.

## Browser Support:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_tPSuH3zqYe.png)<figcaption>Browser Support</figcaption>

### Related Articles:

- **[HTML <aside> Aside Tag](https://sharepointanchor.com/learn-html/html-aside-tag/)**
- **[HTML <caption> Caption Tag](https://sharepointanchor.com/learn-html/html-caption-tag/)**
- **[Basic HTML Definitions and Usages in the Real World](https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/)**
- **[HTML <datalist> Data List Tag](https://sharepointanchor.com/learn-html/html-datalist-data-list-tag/)**
- **[HTML <article> Article Tag](https://sharepointanchor.com/learn-html/html-article-tag/)**

The post [HTML <code><figcaption></code> Figure Caption Tag](https://sharepointanchor.com/learn-html/html-figcaption-figure-caption-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).