English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <dialog> Tag

The HTML <dialog> element represents a dialog or other interactive component, such as a checker or window.

Online Example

Using the <dialog> element:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 the use of dialog tag (Basic Tutorial Website oldtoolbag.com)</<title>
</<head>
<body>
<p><b>Notice:</b>Currently only Chrome and Safari 6 Support for dialog tag.</p>
<dialog open><p>Greetings, one and all!/p></dialog>
</body>
</html>
Test to see ‹/›

Browser compatibility

<dialog> tag has basic support for the following browsers.

IEFirefoxOperaChromeSafari

Definition and usage of the tag

<dialog> tag defines a dialog, confirmation box, or window.

HTML 4.01 and HTML5differences between

<dialog> tag is HTML5 new tag in.

Attribute

New :HTML5 new attribute in.

AttributeValueDescription
openHTML5openSpecifies that the dialog element is valid, and the user can interact with it.

Global attributes

Support for <dialog> tag Global attributes of HTML.

Event attributes

Support for <dialog> tag HTML event attributes.