![]() |
Definition and UsageThe When present, it specifies that the details should be visible (open) by default. Applies toThe
Browser SupportThe numbers in the table specify the first browser version that fully supports the attribute. |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The details open attribute</h1>
<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>
<p>This example demonstrates a details element that is open by default.</p>
</body>
</html>
html open attribute |
How to use An open/visible <details> element - HTML open Attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |
Views: | 43 |
Reffered: https://www.w3schools.com/tags/att_open.asp