Introducing to List Tags in HTML - Technology & Web designing

Breaking

Sunday, 26 April 2020

Introducing to List Tags in HTML

List tag is divided into two :

  • Unordered list (<UL>)

  • Ordered list (<OL>)

  1. Unordered list (<UL>) :

This is the simplest one. The elements of an unordered list are usually displayed as a series of bullet points. An unordered list is contained between <UL> & </UL>. Each element in the list should be started by <LI> tag, Ending tag </LI> is optional. By default <UL> tag is displayed type Disc.

Attributes :

Type : This specifies the bullet type list. The value can be.

■ = Square

● = Disc

° = Circle

Programe :

Output :

2. Ordered list <OL>

This is just like an unordered list but the elements are displayed in number format. The browser works out the numbering scheme. By default - 1, 2, 3, 4....... are used.

Attribute

  1. Type : Type = 1, Type = A, Type = a, Type = I, Type = I
  2. Start : This specifies the initial value of the list items. The numbering sequence will start from the specified number, as using the correct type attribute value. <OL> tag by default displays type "1".

Attribute for <LI>:

Value : This restarts the numbering sequence number in the <LI> tag.

Programe :

Output :

No comments:

Post a Comment

If you have any doubts regarding this please comment or email us.