<figcaption>
HTML <figcaption> Tag
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <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="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228"> <figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption> </figure> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
IE 9, Firefox, Opera, Chrome and Safari support the <figcaption> tag.
Note: IE 8 or earlier versions of IE browsers do not support the <figcaption> tag.
Tag definition and usage instructions
<figcaption> tag defines the title for the <figure> element.
The<figcaption> element should be placed as the first or last child of the <figure> element.
Differences between HTML 4.01 and HTML5
The<figcaption> tag is a new tag in HTML5.
Global attributes
<figcaption> tag supports HTML global attributes.
Event attributes
<figcaption> tag supports HTML event attributes.