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

Online-Tools

Referenzhandbuch

HTML: <dl> Tag

: <progress>-Tag-Wertepaare-Liste).

Das HTML-<dl>-Tag wird verwendet, um Beschreibungslisten in HTML-Dokumenten zu definieren. Beschreibungslisten sind Listen gruppierten Begriffen (gefunden in <dt>-Tag) und deren zugehörigen Beschreibungen (gefunden in <dd>-Tag). Dieses Tag wird auch als <dl>-Element bezeichnet.

Online-Beispiel

Liste mit Projekten und Beschreibungen:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 Verwendung von <dl>-Tag (Grundlagen-Tutorial-Netz)3codebox.com)/title>
</head>
<body>
<dl>
   <dt>Chrome</dt>
   <dd>Web-Browser von Google</dd>
   <dt>Safari</dt>
   <dd>Web-Browser von Apple</dd>
</dl>
</body>
</html>
Testen Sie, um zu sehen ‹/›

In diesem HTML5In der Dokumentbeispiel haben wir eine erstellt, die2Liste der Browsernamen (Chrome und Safari) und deren zugehörigen Beschreibungen.

Browserkompatibilität

IEFirefoxOperChromeSafari

All mainstream browsers support the <dl> tag.

Tag definition and usage instructions

The <dl> tag is usually used to display glossaries or definitions of terms.

The <dl> tag defines a description list.

The <dl> tag can contain zero or more groups, each consisting of one or more terms (found in the <dt> tag) followed by one or more descriptions (found in the <dd> tag).

The <dl> tag with <dt> (Define the item/(Name) and <dd> (Describe each item/Name) together.

For each group, there must be at least one <dt> tag, followed by at least one <dd> tag. This means that you can list:

  • A term followed by a single description

  • A single term followed by multiple descriptions

  • Multiple terms followed by a single description

  • Multiple terms followed by multiple descriptions

HTML 4.01 and HTML5Differences between

In HTML 4.01 In, the <dl> tag defines a definition list.

In HTML5 In, the <dl> tag defines a description list.

Global Attributes

The <dl> tag supports Global Attributes of HTML.

Event Attributes

The <dl> tag supports HTML Event Attributes.

Related Articles

HTML Tutorial:HTML List