HTML Summary Tag - Coding Tag

HTML Summary Tag


The HTML summary tag is always used with details tag. The summary element must be the first child of a tag. It is used within the tag.

The summary element is used as a summary, caption, heading or legend for the content of a details element.

The <summary></summary> tag is new in HTML5.


The <summary> tag is written as <summary></summary> with the summary/legend inserted between the start and end tags.


<!DOCTYPE html>
<title>HTML Summary Tag</title>
<h2>Example of Summary Tag</h2>
<summary>Coding Tag Summary</summary>
<p>Coding Tag is a popular tutorial website.</p>
<p>You can learn various tutorials on Coding Tag such as HTML, CSS, JavaScript, JQuery, PHP, etc.</p>


Result - HTML summary tag

Result - summary tag in HTML

Best WordPress Hosting


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price

Leave a Reply

    Waiting for your comments