TOP CATEGORIES

×

What is dialog tag in HTML?

V

Vivek Madhur

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

  1. Chrome: Yes
  2. Edge: Not Supported
  3. Firefox: Yes
  4. Safari: Yes
  5. 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.

0 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)