Das summary-Tag

Das Tag summary gibt eine Überschrift für das Tag datalist an, das einen Spoiler in HTML erstellt. Mit summary kann der Inhalt des Tags datalist ein- und ausgeklappt werden.

Beispiel

Sehen wir uns an, wie das Tag details funktioniert:

html<details>
  <summary>click me</summary>
  hidden text
</details>

Результат:

Siehe auch

  • das Attribut hidden,
    das Blöcke auf der Seite ausblendet