It is use inside the details tag.
Basically it just a summary for the content of <details> element.
Let's understand this by the following example:
<details>
<summary> ITC Training classes </summary>
<p> It is best coaching institute near Gurgaon. </p>
<p> Well known for Website Designing and Development </p>
</details>