Javatpoint Logo

91-9990449935

 0120-4256464

HTML Summary Tag

The HTML <summary> tag is used with <details> tag. It is used as a summary, caption or legend for the content of a <details> element.

It is used within the <details> tag. It must have a closing tag.

The <summary> tag is new and introduced in HTML 5.


HTML summary tag example

Test it Now

Output:

JavaTpoint Summary

JavaTpoint is a popular tutorial website.

You can learn various tutorials on JavaTpoint such as HTML, CSS, JavaScript, Java, Android.


Let's see another example of HTML summary tag.

Test it Now

Output:

MacBook Pro Specification
  • 13.3-inch LED-backlit glossy widescreen display with edge-to-edge, uninterrupted glass (1280 x 800-pixel resolution).
  • 2.4 GHz Intel Core i5 dual-core processor with 3 MB shared L3 cache for excellent multitasking.
  • Intel HD Graphics 3000 with 384 MB of DDR3 SDRAM shared with main memory.
  • 500 GB Serial ATA hard drive (5400 RPM)
  • 4 GB installed RAM (1333 MHz DDR3; supports up to 8 GB)

The <summary> tag supports only Global attributes in HTML 5. There are no other specific attributes used with <summary> tag.


Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<summary>YesNoNoNoNo
Next TopicHTML Section Tag