New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# dialog Experimental

Defines a dialog box that can be opened and closed with JavaScript.

Example: Copy

This is a dialog box!
<dialog>
  This is a dialog box!
</dialog>

open

Opens the dialog box by default.

No value required.