0% found this document useful (0 votes)
5 views

HTML dialog Tag

The <dialog> tag in HTML is used to create dialog boxes or subwindows, allowing for easy implementation of popups and modals on web pages. The tag supports an 'open' attribute to indicate if the dialog is active and can be interacted with. Browser support for the <dialog> element varies, with specific versions listed for different browsers.

Uploaded by

artemvasylenko26
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

HTML dialog Tag

The <dialog> tag in HTML is used to create dialog boxes or subwindows, allowing for easy implementation of popups and modals on web pages. The tag supports an 'open' attribute to indicate if the dialog is active and can be interacted with. Browser support for the <dialog> element varies, with specific versions listed for different browsers.

Uploaded by

artemvasylenko26
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

17/03/2025, 02:29 HTML dialog Tag

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C

HTML <dialog> Tag


❮ Previous Complete HTML Reference Next ❯

Example
Using the <dialog> element:

<dialog open>This is an open dialog window</dialog>

Try it Yourself »

Definition and Usage


The <dialog> tag defines a dialog box or subwindow.

The <dialog> element makes it easy to create popup dialogs and modals on a web
page.

Browser Support
The numbers in the table specify the first browser version that fully supports the
element.

Element

<dialog> 37.0 79.0 98.0 15.4 24.0

https://www.w3schools.com/TAGs/tag_dialog.asp 1/4
17/03/2025, 02:29 HTML dialog Tag

Attributes
 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
Attribute Value Description

open open Specifies that the dialog element is active and that the
user can interact with it

Global Attributes
The <dialog> tag also supports the Global Attributes in HTML.

Event Attributes
The <dialog> tag also supports the Event Attributes in HTML.

Related Pages
HTML DOM reference: Dialog Object

❮ Previous Complete HTML Reference Next ❯

Track your progress - it's free! Sign Up Log in

https://www.w3schools.com/TAGs/tag_dialog.asp 2/4
17/03/2025, 02:29 HTML dialog Tag

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS
 JAVASCRIPT
PLUS
SQL PYTHON
SPACES
JAVA PHP HOW TO W3.CSS C

GET CERTIFIED FOR TEACHERS

FOR BUSINESS CONTACT US

Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial

Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference

Top Examples Get Certified


HTML Examples HTML Certificate
CSS Examples CSS Certificate
JavaScript Examples JavaScript Certificate
How To Examples Front End Certificate
SQL Examples SQL Certificate
Python Examples Python Certificate
W3.CSS Examples PHP Certificate
Bootstrap Examples jQuery Certificate
PHP Examples Java Certificate
Java Examples C++ Certificate
XML Examples C# Certificate
jQuery Examples XML Certificate

https://www.w3schools.com/TAGs/tag_dialog.asp 3/4
17/03/2025, 02:29 HTML dialog Tag

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL
 PYTHON
  JAVA
 PHP HOW TO W3.CSS C

FORUM ABOUT ACADEMY


W3Schools is optimized for learning and training. Examples might be simplified to improve
reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot
warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of
use, cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Schools is Powered by


W3.CSS.

https://www.w3schools.com/TAGs/tag_dialog.asp 4/4

You might also like