Movatterモバイル変換


[0]ホーム

URL:


  1. Tecnologia Web para desenvolvedores
  2. HTML: Linguagem de Marcação de Hipertexto
  3. Referência HTML
  4. Elementos HTML
  5. <figcaption>

Esta página foi traduzida do inglês pela comunidade.Saiba mais e junte-se à comunidade MDN Web Docs.

View in EnglishAlways switch to English

<figcaption>: O elemento de legenda da figura

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since julho de 2015.

OElemento HTML Figcaption (<figcaption>) representa uma legenda ou uma legenda associada com uma figura ou ilustração descrita pelo resto dos dados do elemento<figure> que seu elemento pai.

Experimente

<figure>  <img    src="/shared-assets/images/examples/elephant.jpg"    alt="Elephant at sunset" />  <figcaption>An elephant at sunset</figcaption></figure>
figure {  border: thin #c0c0c0 solid;  display: flex;  flex-flow: column;  padding: 5px;  max-width: 220px;  margin: auto;}img {  max-width: 220px;  max-height: 150px;}figcaption {  background-color: #222;  color: #fff;  font: italic smaller sans-serif;  padding: 3px;  text-align: center;}
Categorias de conteúdoNenhuma.
Conteúdo permitidoFlow content.
Omissão de TagNenhuma, tanto a tag de início quanto a de fim são obrigatórias.
Elemento Pai PermitidoUm Elemento<figure>
Interface DOMHTMLElement

Atributos

Esse elemento possui somente osatributos globais.

Exemplos

Por favor, consulte a página<figure> para visualizar o exemplos do elemento<figcaption>.

Especificações

Specification
HTML
# the-figcaption-element

Compatibilidade com navegadores

Veja também

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp