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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
