English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML-Referenzhandbuch

HTML-Tag-Liste

HTML-dialog-open-Eigenschaft

Dieser Artikel beschreibt die HTML-dialog-open-Eigenschaft, die eine booleanische (boolesche) Eigenschaft ist. Nach der Verwendung dieser Eigenschaft ist das dialog-Element aktiviert und der Benutzer kann damit interagieren. Ein Online-Beispiel zeigt, wie die HTML-dialog-open-Eigenschaft verwendet wird, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen über ihre Eigenschaftswerte.

 HTML <dialog> Tag

Online-Beispiel

Verwendung des <dialog>-Elements:

!DOCTYPE html
<html>
<head>
<meta charset="utf-8">
<title>Verwendung der HTML-dialog-open-Eigenschaft-Grundlegende Anleitung(oldtoolbag.com)</title>
<style>table, th, td {     border: 1px solide schwarz;}</style>
</head>
<body>
<table>
  <tr>
    <th>Januar <dialog open> Dies ist ein geöffneter dialog-Dialogfenster</dialog></th>
    <th>February</th>
    <th>March</th>
  </tr>
  <tr>
    <td>31</td>
    <td>28</td>
    <td>31</td>
  </tr>
</table>
</body>
</html>
Test see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently only Chrome and Safari 6 Supports the open attribute.

Definition and Usage

The open attribute is a boolean (boolean) attribute.

After using this attribute, the specified dialog element is in an active state and the user can interact with it.

HTML 4.01 with HTML5differences

<dialog> Tag is HTML5 New tags.

Differences between HTML and XHTML

In XHTML, attributes are not allowed to be abbreviated, the open attribute must be defined as: <dialog open="open">.

Syntax

<dialog open>

 HTML <dialog> Tag