/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: open

[this page | pdf | back links]

The HTML open attribute indicates whether details in a <details> or <dialog> element should be visible (i.e. open) to the user.

 

Valid attribute values (for <details>) include:

 

Value

Description

open

Specifies whether the details should be visible to user

 

Valid attribute values (for <dialog>) include:

 

Value

Description

open

Specifies whether the dialog element is active and hence whether the user can interact with it

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile