Summary Tag in HTML5

In this article I am going to describe about the implementation and use of summary tag in HTML5.
  • 1549

Summary Tag

The  <summary>  tag use for defined visible heading for detail element. The summary tag may be use for view and hide detail element by the clicking.

Purpose of the  summary tag is to specify a text which a summary of the purpose as well as structure of a table. The <summary> tag is new in HTML5.

The summary tags gives caption to the details section. If we have not used summary tag, the caption would have been Details, which is default.

Note : The <summary> element should be the first child element of the <details> element.

Browser Support

The <summary> tag is currently only supported in Chrome. While other browsers are not currently supporting it.


<table summary="value" >.....</summary>

Example of <summary> tag in HTML5

<!DOCTYPE html>


<html lang="en" xmlns="">


    <meta charset="utf-8" />

    <title>Summary Tag</title>



    <h1>Implementation of Summary Tag in HTML5</h1>


        <summary>India Won</summary>

        <p>In the asia cup, the match played between India and Pakistan.India won that match by beating pakistan by 12 runs</p>


    <p><b>Note:</b> The &lt;summary&gt; tag is currently only supported in Chrome.</p>






© 2020 DotNetHeaven. All rights reserved.