Horje

How to use An open/visible <details> element - HTML open Attribute

This example demonstrates a details element that is open by default.
index.html
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>

Output should be:

How to use An open/visible <details> element - HTML open Attribute




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