0% found this document useful (0 votes)
20 views2 pages

HTML List

HTML lists are used to group related items and come in three types: unordered lists, ordered lists, and description lists. Unordered lists use the <ul> tag and display items with bullets, while ordered lists use the <ol> tag and display items with numbers. Description lists, defined with the <dl> tag, consist of terms and their corresponding descriptions.

Uploaded by

mr.spideyzzzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

HTML List

HTML lists are used to group related items and come in three types: unordered lists, ordered lists, and description lists. Unordered lists use the <ul> tag and display items with bullets, while ordered lists use the <ol> tag and display items with numbers. Description lists, defined with the <dl> tag, consist of terms and their corresponding descriptions.

Uploaded by

mr.spideyzzzz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML Lists

HTML lists allow web developers to group a set of related items in lists. There are three
types of list.1)An unordered list 2) An Ordered list 3) Definition list

Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

The list items will be marked with bullets (small black circles) by default:

Example
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example

 Coffee
 Tea
 Milk

Ordered HTML List

An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

The list items will be marked with numbers by default:

Example
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

An ordered HTML list :

1. Coffee
2. Tea
3. Milk

HTML Description Lists

HTML also supports 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>

Definition HTML list :

 Coffee
black hot drink
 Milk
White cold drink

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

You might also like