HTML Other Lists

HTML is the standard markup language for Web pages.
With HTML you can create your own Website.
HTML is easy to learn - You will enjoy it!
Post Reply
Guest

HTML Other Lists

Post by Guest »

HTML Other Lists


HTML also supports description lists.

HTML Description Lists
A description list is a list of terms, with a description of each term.
The <dl> tag defines the description list, the
<dt> tag defines the term (name), and the
<dd>
tag describes each term:

Example

<dl>
 
<dt>Coffee</dt>
 
<dd>- black hot drink</dd>
 
<dt>Milk</dt>
 
<dd>- white cold drink</dd>
</dl>

Try it Yourself »


Chapter Summary

Use the HTML <dl> element to define a description list
Use the HTML <dt> element to define the description term
Use the HTML <dd> element to describe the term in a description list


HTML Exercises

Test Yourself With Exercises

Exercise:
Add a list item with the text "Coffee" inside the <ul> element.

<ul>Coffee</ul>


Submit Answer »
Start the Exercise



HTML List Tags


Tag
Description


<ul>
Defines an unordered list


<ol>
Defines an ordered list


<li>
Defines a list item


<dl>
Defines a description list


<dt>
Defines a term in a description list


<dd>
Describes the term in a description list



For a complete list of all available HTML tags, visit our HTML Tag Reference.














+1

Reference: https://www.w3schools.com/html/html_lists_other.asp
Post Reply