HTML 02
- chathu hewage
- Jan 27, 2021
- 1 min read
Updated: Feb 3, 2021
Lists
In this tutorial you can learn how to create a variety of lists.
Upon completing this section, you should be able to
Create an unordered list.
Create an ordered list.
Create a defined list.
Nest List.
List Elements
HTML supplies several list of elements. Most list elements are composed of one or more <li> (list item) list elements.
<UL> Unordered list:-
Items in this list start with a list mark such as a bullet.

Bullet types:
Disc
Circle
Square
We can use the "TYPE" attribute for the <UL> element to create lists using bullet type we want.

<OL> Order List:-
Items in this list are numbered automatically by the browser.

<OL> element also can use "TYPE" attribute to one of five numbering styles.

We can put the number in to order list and we can start with any number we want.

<DL> Definition List:-
This elements is different from others. This include <DT> elements and <DD> element.
Each item in a <DT> consists of one or more Definition Terms (<DT> element), followed by one or more Definition Description (<DD> element)

Nesting List:-
This lists can include many elements like <OL>. <UL> etc.

Exercise

Reference:
Tutorial Created by Navodya Heshani
Commenti