Horje

How to add HTML <details> open Attribute

Definition and Usage

The open attribute is a boolean attribute.

When present, it specifies that the details should be visible (open) to the user.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Syntax

<details open>

index.html
Example: HTML
<details open>
  <summary>Epcot Center</summary>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details> 

Output should be:

How to add HTML <details> open Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin