Html-dialog-tag

提供:Dev Guides
移動先:案内検索

HTML-<dialog>タグ

説明

HTML <dialog>タグは、ダイアログボックスを定義するために使用されます。

<!Doctype html>
<html>

   <head>
      <title>HTML dialog Tag</title>
   </head>

   <body>
      <dialog open>this will be shown in a dialog</dialog>
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、リンク:/html/html_attributes_reference [* HTML属性リファレンス*]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <dialog>タグは、次の追加属性もサポートしています-

Attribute Value Description
open HTML-5 open opens a dialog box and user can interact with it

イベント属性

このタグは、link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートしています。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes (Canary) No No No 6.0 No