In HTML, If you wish to list out a number of items, you can use the following types of listing:
4.1 The Unordered ListAlso called unnumbered list or bulleted list. The HTML tags are shown as follow<UL>
*Note that <LI> tag does not require a closing tag.
|
Example 4.1:
| <HTML
<HEAD><TITLE>Unordered List</TITLE></HEAD> <BODY> <H2> Fruits</H2> <HR> <UL> <LI> Apple <LI> Grape <LI> Orange <LI> Pear <LI> Pineapple <LI> Water Melon </UL> </BODY> </HTML> |
|
Copy and paste the above codes to your notepad and save the file as uorlist.html.
Click here to view the sample output.
Click here to view the sample output.
Example 4.2:
| <HTML>
<HEAD><TITLE>Nested List</TITLE></HEAD>
</HTML>
|
Copy the codes above and paste them to your notepad. Save the file as nested.html
Click here to view the output.