VOOZH about

URL: https://www.geeksforgeeks.org/html/html-details-open-attribute/

⇱ HTML | <details> open Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML | <details> open Attribute

Last Updated : 21 Jul, 2022

The HTML <details> open attribute is used to indicate whether the details will be display on page load. It is a boolean attribute. If this attribute is present then the detail will be visible. 

Syntax:

<details open> Contents... </details>

Example: This example illustrates the use of open attribute in <details> element. 

Output:

 👁 Image
 

Supported Browsers: The browser supported by HTML <details> open attribute are listed below:

  • Google Chrome 12.0
  • Edge 79.0
  • Firefox 49.0
  • Safari 6.0
  • Opera 15.0
Comment
Article Tags: