HTML open Attribute

❮ HTML Attributes


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


The open attribute specifies whether details/dialog should be shown to the user.

Standard Syntax

HTML: <element open>
XHTML: <element open="open">

Browser Support


Applies to:

The open attribute can be used on the following element:

Element Attribute
<details> open
<dialog> open

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.

More Examples


<dialog open>This is an open dialog box</dialog>
❮ HTML Attributes