使用标签来为使用标签添加的细节指定一个摘要。
示例您可以尝试运行以下代码以在html5中显示摘要 −
<!doctype html><html> <head> <title>html summary tag</title> </head> <body> <details> <summary>some more information</summary> <p>providing more info about the details here.</p> </details> </body></html>
以上就是如何在html5中显示给定元素的摘要?的详细内容。