Referenz:HTML/dl

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
Name dl HTML5 HTML 4.0
Bedeutung repräsentiert eine Beschreibungsliste
Syntax Start-Tag: notwendig
End-Tag: notwendig
<dl>…</dl>
optionale Tags

{{{optional}}}

WAI-ARIA-Rolle
  • keine
Elternelemente Darf vorkommen in:
  • allen Elementen, die fließenden Inhalt erlauben
Info: Elemente, die fließenden Inhalt erlauben (flow content expected)Info: Elemente, die fließenden Inhalt erlauben (flow content expected)

Information: Elemente, die fließenden Inhalt erlauben

erlaubte Inhalte
  • entweder: beliebig viele Gruppen aus (beliebig vielen) dt- und (beliebig vielen) dd-Elementen
  • oder div-Elemente, die ihrerseits dt- und dd-Elemente enthalten
  • darf keinen Text enthalten
Browsersupport
  • Chrome
  • Firefox
  • IE
  • Opera
  • Safari
Spezifikation W3c logo klein.gif The dl Element
Beachten Sie
Tipp
Validität Prüfen Sie, ob Ihr Markup valide ist, falls Sie sich nicht sicher sind.
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID identifiziert ein einziges Element innerhalb eines Dokuments
class CDATA ordnet ein Element einer oder mehreren Klassen zu.
accesskey ID Tastaturkürzel
contenteditable CDATA editierbarer Inhalt
contextmenu definiert Kontextmenü
dir ltr, rtl definiert die Schreibrichtung innerhalb des Dokuments
draggable ID kann mit Drag & Drop gezogen werden
dropzone CDATA Aktion bei Ablegen
hidden versteckter Inhalt
lang NAME legt eine den IANA-Sprachdefinitionen folgende Sprache des Elementinhalts fest [RFC1766]
spellcheck ID Rechtschreibprüfung
style CDATA notiert direkt in einem Element- style sheet data
tabindex NAME zeigt an, ob dieses Element fokusiert werden kann, ob es mithilfe der Tastaturnavigation angesteuert werden kann und in welcher Reihenfolge navigiert wird.
title CDATA betitelt oder beschreibt ein Element.

Attribut: Pflichtattribut
Attribut: optionales Attribut

HTML 4.01 Strict[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

blockquote, body, button, dd, del, div, fieldset, form, ins, li, map, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression


HTML 4.01 Transitional[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression
compact compact reduced interitem spacing


HTML 4.01 Frameset[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID document-wide unique id
class CDATA space-separated list of classes
style CDATA associated style info - style sheet data
title CDATA advisory title
lang NAME language code - a language code, as per [RFC1766]
dir ltr, rtl direction for weak/neutral text
onclick CDATA a pointer button was clicked - script expression
ondblclick CDATA a pointer button was double clicked - script expression
onmousedown CDATA a pointer button was pressed down - script expression
onmouseup CDATA a pointer button was released - script expression
onmouseover CDATA a pointer was moved onto - script expression
onmousemove CDATA a pointer was moved within - script expression
onmouseout CDATA a pointer was moved away - script expression
onkeypress CDATA a key was pressed and released - script expression
onkeydown CDATA a key was pressed down - script expression
onkeyup CDATA a key was released - script expression
compact compact reduced interitem spacing


XHTML 1.0 Strict[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

blockquote, body, button, dd, del, div, fieldset, form, ins, li, map, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA


XHTML 1.0 Transitional[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA
compact compact


XHTML 1.0 Frameset[Bearbeiten]

Bedeutung Definitionsliste
Tags Start-Tag: notwendig
End-Tag: notwendig

<dl>…</dl>

Elternelemente Darf vorkommen in:

applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noscript, object, td, th

Kindelemente mindestens ein (entweder dt oder dd)
Attribute
Name Inhalt Standardwert Bedeutung
Universalattribute
id ID
class CDATA
style CDATA
title CDATA
lang NMTOKEN
xml:lang NMTOKEN
dir ltr, rtl
onclick CDATA
ondblclick CDATA
onmousedown CDATA
onmouseup CDATA
onmouseover CDATA
onmousemove CDATA
onmouseout CDATA
onkeypress CDATA
onkeydown CDATA
onkeyup CDATA
compact compact