Skip to Main Content or Page Contents

HTML Tutorial 8. Lists

Unordered Lists, Ordered Lists and Definition Lists: Tags <ul>, <li>, <ol>, <dl>

Results per page:

Match: any search words all search words

Page Contents - Description Lists

Definition Lists were renamed to Description Lists in HTML5

 

Description List: Tags <dl><dt><dd>

Description Lists are also called Glossary Lists.

The default Definition List

 

Term 1
Description 1
Term 2
Description 2

Code

<dl>
   <dt>Term 1</dt>
      <dd>Definition 1</dd>
   <dt>Term 2</dt>
      <dd>Definition 2</dd>
</dl>
 

<dl>

The dl element is the container for the entire Description List, called a Definition listbefore HTML5

<dt>

The dt inline element is used to create a Description term, before each <dd> tag

<dd>

The dd block element is used for each Descripion Data.

Some example uses

Name
    Address

Question
   Answer