html The figcaption tag is used to define the title (caption) of the figure element. The "figcaption" element should be placed as the first or last child element of the "figure" element.
html How to use the figcaption tag?
Function: Define the title (caption) of the figure element.
Note: The "figcaption" element should be placed as the first or last child element of the "figure" element.
Note: All major browsers support the
html figcaption tag usage example
<!DOCTYPE html> <html> <body> <p>ThinkPHP5快速开发企业站点</p> <figure> <img src="http://www.php.cn/tpl/Index/Static/img/banner3.jpg" alt="php.cn" width="304" height="228"> <figcaption>Fig.1 - ThinkPHP5快速开发企业站点</figcaption> </figure> </body> </html>
The above is the detailed content of How to use html figcaption tag. For more information, please follow other related articles on the PHP Chinese website!