HTML Tag <dialog>
The HTML <dialog> tag is new in HTML5 which is used to create a new popup dialog on a web page. It is used to represent interactive components.
Syntax Example of <dialog>
<dialog>
<p>This is a dialog tag paragraph</p>
</dialog>
Browser Support <dialog> Tag
- Chrome: Yes
- Edge: Not Supported
- Firefox: Yes
- Safari: Yes
- Opera: Yes
Tag-Specific Attributes
- <dialog> tag supports the Global & Event attributes.
- The <dialog> tag has one specific attribute open.
- The open attribute specifies that the dialog element is active and that the user can interact with <dialog>.
- The tab index attribute must not be used on the <dialog> element.