HTML5 - Details Tag




HTML5 Details Tag

Html <details> tag is used for specify the additional details about any contents on web page that the user can view or hide.

The HTML5 <datalist> tag can be used in conjunction with an <input> element that contains a list attribute.

Example

<!DOCTYPE>
<html>
<body>
<details>
<h3>Html5 Introduction</h3>
<p>HTML 5 is a markup language used for structuring and presenting content on the World Wide Web.</p>
</details>
</body>
</html>

Result

Html5 Introduction

HTML 5 is a markup language used for structuring and presenting content on the World Wide Web.

Attributes

details element does not have any other attributes than the global attributes (accesskey, class, contenteditable, contextmenu, dir, draggable, dropzone, hidden, id, lang, spellcheck, style. tabindex, title), common to all elements.