Advertisement
Home Open Editor ❯

HTML <details> open Attribute

Example

<details open>
  <summary>HTML</summary>
  <p>The HyperText Markup Language, or HTML is the standard markup language for documents designed to be displayed in a web browser.</p>
</details>

Try this code ❯

Meaning

Specifies whether details should be shown to the user.


Standard Syntax

<details open>
  <summary>Summary</summary>
  <p>Details Information</p>
</details>


Advertisement

Attribute Values

Value Description
open This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement