English

Write the difference between <OL> and <UL> tags in HTML. Also write suitable examples of each to illustrate the difference.

Advertisements
Advertisements

Question

Write the difference between <OL> and <UL> tags in HTML. Also write suitable examples of each to illustrate the difference.

Distinguish Between
Advertisements

Solution

The <UL> tag is used to create an unordered or unnumbered list. In this type of list, each item is shown with a bullet symbol.

The <OL> tag is used to create an ordered or numbered list. In this type of list, each item is shown with a number or letter.

Example of <UL>:

<UL type="circle"> <LI>One <LI>Two
</UL>

It will display:

  • One
  • Two

Example of <OL>:

<OL> <LI>One <LI>Two
</OL>

It will display:

  • One
  • Two
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assisted Practice [Page 124]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assisted Practice | Q 6. | Page 124
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×