要向 元素添加标题,请使用 标签。您可以尝试运行以下代码以在 html5 中包含 元素的标题 -
<!doctype html><html> <head> <title>html figcaption tag</title> </head> <body> <figure><img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg"/> <figcaption>tutorials point library of tutorials</figcaption> </figure> </body></html>
以上就是在html5中为一个<figure>元素添加标题的详细内容。