6 Give the elements name for these descriptions Unordered li
6. Give the elements name for these descriptions:
Unordered list:
Ordered list:
Description list:
Solution
Solution:
Unordered list
Unordered list is used to create the group of related items. But these items are not in perfect order
The unordered list will be created with the tag <ul>. Each item will be started with the tag <li>. The list of items will be denoted with bullets default.
Example:
<ul>
<li>potato
<li>tomato
<li>onion
<ul>
Output will be in the form
Ordered list
Ordered list is used to create the group of related items. But these items are in perfect order. The ordered list will be created with the tag <ol>. Each item will be started with the tag <li>. In this the list will give order of the work done to do the work.
Example:
<ol>
<li>cut the vegetables
<li>cook the vegetables
<li>add the salt and spices to vegetables
</ol>
Output
1. Cut the vegetables
2. Cook the vegetables
3. Add the salt and spices to vegetables
Description list
It gives the list of items. Where the list of the items will gives the description of each item. Ordered list will be created with the tag <dl>. The <dl> tag is used in conjunction with <dt> which defines the item in the list, and <dd> describes the description of each item in the list.
Example
<dt>cake</dt>
<dd>baked food made of Maida.</dd>
</dl>
Output
Cake
baked food made of Maida.

