html5<figcaption> tag


  Translation results:

fig

英[fɪg] 美[fɪɡ]

n.Fig; fig tree

caption

UK[ˈkæpʃn] US[ˈkæpʃən]

n. Subtitles; title, description text, subtitles; third file

vt. Add description to (pictures, photos, etc.) text; add titles to (documents, etc.); add subtitles to…

html5<figcaption> tagsyntax

Function: The <figcaption> tag defines the title (caption) of the figure element.

The "figcaption" element should be placed as the first or last child element of the "figure" element.


html5<figcaption> tagexample

<!DOCTYPE html>
<html>
<body>

<p>The Pulpit Rock is a massive cliff 604 metres (1982 feet) above Lysefjorden, opposite the Kjerag plateau, in Forsand, Ryfylke, Norway. The top of the cliff is approximately 25 by 25 metres (82 by 82 feet) square and almost flat, and is a famous tourist attraction in Norway.</p>

<figure>
  <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" alt="The Pulpit Rock" width="304" height="228">
  <figcaption>Fig.1 - The Pulpit Rock, Norway.</figcaption>
</figure>

</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A