An element which is not a part of the description list is dl dd td

: The Description List element

The HTML element represents a description list. The element encloses a list of groups of terms [specified using the element] and descriptions [provided by elements]. Common uses for this element are to implement a glossary or to display metadata [a list of key-value pairs].

Content categoriesPermitted contentTag omissionPermitted parentsImplicit ARIA rolePermitted ARIA rolesDOM interface
Flow content, and if the element's children include one name-value group, palpable content.

Either: Zero or more groups each consisting of one or more elements followed by one or more elements, optionally intermixed with and elements.
Or: [in WHATWG HTML, W3C HTML 5.2 and later] One or more

elements, optionally intermixed with and elements.

None, both the starting and ending tag are mandatory.
Any element that accepts flow content.
No corresponding role
group, list, none, presentation
HTMLDListElement

10 Lists

Contents

  1. Introduction to lists
  2. Unordered lists [UL], ordered lists [OL], and list items [LI]
  3. Definition lists: the DL, DT, and DD elements
    1. Visual rendering of lists
  4. The DIR and MENU elements

So what is a definition list?

Simply put it is a list of definitions. For the unabridged version read therelevant section in the HTML specification. Basically a definition list is composed of three HTML elements and some text. These are the , and elements.

A definition list is the container element for DT and DD elements. The DL element should be used when you want to incorporate a definition of a term in your document, it is often used in glossaries to define many terms, it is also used in “normal” documents when the author wishes to explain a term in a more detail [Like this definition].The term currently being defined in the definition list. This element contains inline data.The definition description element contains data that describes a definition term. This data may be either inline, or it may be block level.

HTML Tag

Previous Complete HTML Reference Next

Example

A description list, with terms and descriptions:


Coffee
Black hot drink
Milk
White cold drink
Try it Yourself »

Video liên quan

Bài mới nhất

Chủ Đề