If We wish to list out a number of items, we could use the following types of listing:
<UL>
<LI>item 1
<LI>item 2
<LIitem 3
</UL>
*Note that <LI> tag does not require a closing tag.
Example:
<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.
[back to the top]
Click here to view the sample output.
[back to the top]
Example:
<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.
[back to the top]