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>
How to use An open/visible <details> element - HTML open Attribute | HTML Attribute |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |