हिंदी

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

Advertisements
Advertisements

प्रश्न

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

अंतर स्पष्ट करें
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: HTML- I: Basic HTML Elements - Assisted Practice [पृष्ठ १२४]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
अध्याय 3 HTML- I: Basic HTML Elements
Assisted Practice | Q 6. | पृष्ठ १२४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×