.

Lists in HTML Assignment Help

In HTML, information can be represented as lists which can be mentioned as

ordered list < ol> for representing in terms of numbers

unordered list < ul> for representing in terms of plain bullets and

definition list < dl> for representing like dictionary

Ordered Lists

To represent items in terms of number form< ol>tag is employed. It starts with 1 and increased by 1. The list elements are denoted by < li> tag

< ol> tag has type attribute. Its options are

  1. 1
  2. I
  3. i
  4. A
  5. a

< ol> tag has one more attribute which is start. It is employed to denote beginning point of numbering

e.g.

< ol type=”1” start=”4”>

Example

lists in html img1

Output

lists in html img2

Unordered List

To represent items in terms of bullets form < ul> tag is employed. It has no sequence or order. The list elements are denoted by < li> tag

< ul> tag has type attribute. Its options are

  • square
  • disc
  • circle

Example

lists in html img3

Output

lists in html img4

Definition List

In this type list are linked like a dictionary. Its a perecr way to represent a content of name and value pair. It employs the following tags

<dl> to define beginning of a list

<dt> to mention a term

<dd> denotes definition of a term

</dl> denotes list end

Example

lists in html img5

Output

lists in html img6
.