HTML Details Tag

HTML

tag is used to specify the additional details on the web page that the user can view or hide on demand.

According to W3C HTML specification, it is used as a disclosure widget from which user can retrieve additional information or control.

It is used together with a relevant tag known as

. Technically, there is no need of summary tag, but if you ignore this then the browser will use some default text.

The

tag wraps all the content which you want to show or hide and the tag contains the summary and the title of the section.

HTML details is a new tag introduced in HTML5.

Let's take an example to understand this clearly.


HTML details tag attribute

HTML details tag also supports global and event attributes in HTML.

The details tag provides one specific attribute open.

Attribute Description
open It specifies that the details will be displayed (open) to the user.

HTML details tag example

Test it Now

Output:

Copyright 2011-2014.

- by JavaTpoint. All Rights Reserved.

All content and graphics on this web site are the property of the tutorialsinfo.com

Note: The details tag is currently only supported in Opera, Chrome, and in Safari 6.


Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes No No Yes Yes
Next TopicHTML dfn Tag




Contact US

Email:[email protected]

HTML details Tag
10/30