Вы находитесь на странице: 1из 2

SHERRY ANN ANGLIGEN The list items in ordered lists are marked with

BEED IV numbers.

HTML provides unordered, ordered, and 1. <ol>


definition list types. 2. <li>Mix ingredients</li>
3. <li>Bake in oven for an hour</li>
Ordered lists are numbered in some 4. <li>Allow to stand for ten minutes</li>
fashion, while unordered lists are bulleted. 5. </ol>

Definition lists consist of a term The output of the above example will look
followed by its definition. something like this:

Both ordered and unordered lists require


1. Mix ingredients
start and end tags as well as the use of a special
2. Bake in oven for an hour
element to indicate where each list item begins
3. Allow to stand for ten minutes
(the <LI> tag).

HTML Unordered Lists

An unordered list created using the <ul> tag, and


each list item starts with the <li> tag.
HTML Definition Lists

The list items in unordered lists are marked with A definition list is a list of items, with a
bullets (small black circles), by default. description of each item.

The definition list created using <dl> tag.


The <dl> tag is used in conjunction with <dt>
1. <ul> defines the item in the list, and <dd> describes
2. <li>Chocolate Cake</li>
the item in the list:
3. <li>Black Forest Cake</li>
4. <li>Pineapple Cake</li>
5. </ul> 1. <dl>
2. <dt>Bread</dt>
The output of the above example will look 3. <dd>A baked food made of flour.</dd>
4. <dt>Coffee</dt>
something like this:
5. <dd>A drink made from roasted coffee
beans.</dd>
Chocolate Cake 6. </dl>
Black Forest Cake
Pineapple Cake The output of the above example will look
something like this:

HTML Ordered Lists Bread

An ordered list, created using the <ol> tag, and A baked food made of flour.
each list item starts with the <li> tag. Ordered
list contain information where order should be Coffee
emphasized.
A drink made from roasted coffee beans.

Вам также может понравиться