What is dialog tag in HTML?

LAST READ: FEB 23 2024 | Q. BY: RAJESH KAMBALE

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 Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)