Eingeführt in HTML5
Übersicht
Das HTML <details> Element wird genutzt für Auskünfte, damit Benutzer zusätzliche Informationen erhalten können.
- Inhaltskategorien Fließender Inhalt, Sektionsursprung, interaktiver Inhalt, greifbarer Inhalt.
- Erlaubter Inhalt Ein
<summary>Element gefolgt von fließenden Inhalt. - Tag Auslassung Keine, sowohl das Anfangs- als auch das End-Tag sind erforderlich.
- Erlaubte Elternelemente Jedes Element, dass fließenden Inhalt erlaubt.
- DOM Schnittstelle
HTMLDetailsElement
Attribute
Dieses Element schließt globale Attribute ein.
-
open - Dieses Boolesche Attribut indiziert, ob die Details dem Benutzer beim Laden der Seite angezeigt werden. Standardmäßig steht dieser Wert auf 'false', sodass die Details versteckt sind.
Beispiel
<details> <summary>Some details</summary> <p>More info about the details.</p> </details>
Note: Due to Bug 591737, this example doesn't currently work on Firefox.
<summary>Some details</summary>
More info about the details.
Spezifikationen
| Spezifikation | Status | Kommentar |
|---|---|---|
| WHATWG HTML Living Standard Die Definition von '<details>' in dieser Spezifikation. |
Living Standard | |
| HTML5 Die Definition von '<details>' in dieser Spezifikation. |
Candidate Recommendation |
Browser Kompatibilität
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 12 | Not supported Bug 591737 | Not supported | 15 | 6 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 4.0 | Not supported Bug 591737 | Not supported | Not supported | Not supported |
Siehe auch
<summary>Element