Computerhelp4all logo Articles AboutTopicsQuizzesComputer Questions & AnswersComputer Terms & DefinitionsActivitiesContact

What Is The HTML <figcaption> Tag?

What Is The HTML Figcaption Tag

Date First Published: 17th January 2023

Topic: Web Design & Development

Subtopic: Web Development

Article Type: Computer Terms & Definitions

Difficulty: Medium

Difficulty Level: 6/10

Learn more about what the HTML <figcaption> tag is in this article.

The <figcaption> is an optional tag used to define a caption for the <figure> tag. It can appear as the first or last element in the <figure> block, although only one <figcaption> tag can appear within the <figure> block.

Note: Info Icon

Only use the <figcaption> tag for defining captions within the <figure> element. Do not use it on images without the <figure> tag as that would be invalid HTML.

Example Of The Figcaption Tag

<figure> <img src="/img/cup-of-coffee.jpg" alt="Cup of coffee in a grey ceramic coffee cup" style="width:40%"> <figcaption>Cup of coffee in a grey ceramic coffee cup </figcaption> </figure>
Cup of coffee in a grey ceramic coffee cup
Cup of coffee in a grey ceramic coffee cup


Feedback

  • Is there anything that you disagree with on this page?
  • Are there any spelling, grammatical, or punctuation errors on this page?
  • Are there any broken links or design errors on this page?

If so, it is important that you tell me as soon as possible on this page.