English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML <dialog> element represents a dialog or other interactive component, such as a checker or window.
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 ‹/›
<dialog> tag has basic support for the following browsers.
IEFirefoxOperaChromeSafari
<dialog> tag defines a dialog, confirmation box, or window.
<dialog> tag is HTML5 new tag in.
New :HTML5 new attribute in.
Attribute | Value | Description |
---|---|---|
openHTML5 | open | Specifies that the dialog element is valid, and the user can interact with it. |
Support for <dialog> tag Global attributes of HTML.
Support for <dialog> tag HTML event attributes.