1.

Explain the main list tags in HTML?

Answer»

HTML provides three basic types of lists-unordered, ordered and definition list.

1. Unordered list:

Unordered list arranges the list items with bullet symbols in front. <UL> and </UL> tag encloses as Unordered list. List items are specified by <LI> tag. The tag <UL> can take value square, circle or disc. The default type is disc.

Eg : <UL>

<LI> COMPUTER

<LI>BIOLOGY

</UL>

2. Ordered list:

In Ordered list, the list items are numbered in sequence. <OL> and </OL> tag encloses an Ordered list. List items are specified by <LI> tag.

The <OL> tag can take values as follows

  • type = 1 for 1, 2, 3,….
  • type = i for i, ii, iii,……
  • type = I for I, II, III,……
  • type = a for a, b, c,…
  • type = A for A, B, C,…..

Eg : <OL>

<LI> COMPUTER

<LI>BIOLOGY

</OL>

3. Definition List:

It is formed by a group of definitions and their descriptions. No bullet symbol or number is provided for the list items. The <DL> and </DL> tags enclose the definition list. The <DT> tag contains the definition term and <DD> tag species the description.

Eg : <DL>

<DT>Eeheque

<DD>Electronic cheque

</DL>



Discussion

No Comment Found