Use the <summary> tag to specify a summary for the details added using <details> tag.
Example
You can try to run the following code to display a summary in 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>