The HTML
tag is used with
tag. It is used as a summary, caption or legend for the content of a
element.It is used within the
tag. It must have a closing tag.The
tag is new and introduced in HTML 5.
HTML summary tag example
Output:
JavaTpoint Summary
Let’s see another example of HTML summary tag.
<li><strong>4 GB installed RAM</strong> (1333 MHz DDR3; supports up to 8 GB)</li>
</ul>
</details>
Output:
MacBook Pro Specification
The <summary> tag supports only Global attributes in HTML 5. There are no other specific attributes used with <summary> tag.
Leave A Comment