All the elements related to lists—ordered lists, unordered lists, and the less-common definition list—as well as the attributes that are unique to these elements.
dd:
Describes a term in a definition list.
Example:
This example shows the use of two dd elements to describe the term “Google”
<dl>
<dt>Google</dt>
<dd>Google is a web application.</dd>
</dl>
dir:
Used to define a multicolumn directory listing.
Example:
The listing below shows a directory of plants:
<dir>
<li>shrubs</li>
<li>conifers</li>
<li>hedges</li>
</dir>
dl:
Creates a definition list for lists comprising item: description pairings.
Example:
This example shows the use of two dd elements to describe the term “Google”
<dl>
<dt>Google</dt>
<dd>Google is a web application.</dd>
</dl>
dt:
Defines a definition term used in a definition list.
Example:
<dl>
<dt>Suzuki</dt>
<dt>Van</dt>
<dd>A vehicle is used for commercial transport purpose</dd>
</dl>
li:
Indicates an individual item in a list.
Example:
<ul>
<li>Eggs</li>
<li>Cheese</li>
<li>Milk</li>
</ul>
menu:
Used to define a list of menu choices.
Example:
<menu>
<li>Main menu</li>
<li>Introduction</li>
<li>Executive summary</li>
</menu>
ol:
An ordered list of items/text.
Example:
<ol>
<li>Main menu</li>
<li>Introduction</li>
<li>Executive summary</li>
</ol>
ul:
An unordered list of items or text.
Example:
<ul>
<li>Main menu</li>
<li>Introduction</li>
<li>Executive summary</li>
</ul>
No comments:
Post a Comment