#

WE ARE SHARING

OUR EXPERIANCE.

BELIEVE THE POWER OF SHARE

BLOG

HTML5.2 Modal (Dialog Box)

HTML5.2 Modal (Dialog Box)

Users may need to remove an account, change their username, or approve a monetary action. In such cases a modal (dialog box) is displayed. We had to use the ready-made libraries to build the building. However, with this element () we will soon be able to create our own modalities without using any prebuilt structures.

Modal (dialog box) is created using a element::

<dialog>

  <h2>Modal (İletişim Kutusu) Başlığı</h2>

  <p>İçerik...</p>

</dialog>


Modal is off by default. If you want it to open automatically, you can use the following:

<dialog open> 

The following example illustrates the use of modal (dialog box) in detail:


Click the link for the browser compatibility table: https://caniuse.com/#feat=dialog