Computer Applications
Write the difference between <ol> and <ul> tags in HTML. Also write suitable examples of each to illustrate the difference.
HTML Advanced Features
8 Likes
Answer
Unordered list | Ordered list |
---|---|
In an unordered list, each item is displayed with a bullet. | In an ordered list, each item is displayed along with the numbers or letters instead of bullets. |
<ul> and </ul> tags are used. | <ol> and </ol> tags are used. |
For example <UL> <LI> Apples </LI> <LI> Oranges </LI> <LI> Grapes </LI> </UL> | For example <OL> <LI> Apples </LI> <LI> Oranges </LI> <LI> Grapes </LI> </OL> |
Output
| Output
|
Answered By
8 Likes
Related Questions
How is CSS beneficial for web page development ? Give any two points.
Illustrate the use of the radio button input type on an HTML form with an appropriate code and the corresponding output.
What is the difference between <br> tag and <p> tag in context of HTML ? Illustrate using suitable examples.
How do Intellectual Property Rights provide protection to digital work? Write any two ways to avoid plagiarism.