Page 172 - Webapplication11_C11_Flipbook
P. 172
<B> Winter Clothes </B>
<HR>
<UL>
<LI> Sweaters
<LI> Woollen Caps
<LI> Gloves
<LI> Jackets
</UL>
</BODY>
</HTML>
Every list has the ability to be placed inside another list. For example, an ordered list can be nested inside an unordered
list and vice-versa. Ensure that the inner and outer list tags should be properly closed while creating nested list.
<HTML>
<HEAD> <TITLE> Nesting of Lists </TITLE> </HEAD>
<BODY>
<B> Fruits and Vegetables </B> <BR>
<UL TYPE = "square">
<LI> Fruits </LI>
<UL>
<LI> Mango </LI>
<LI> Grapes </LI>
</UL>
<LI> Vegetables </LI>
<UL>
<LI> Potato </LI>
<LI> Onion </LI>
</UL>
</BODY>
</HTML>
Definition List
The definition list is also known as description list. The description list is created by using the <DL> tag in conjunction
with <DD> and <dt> tags. The <dl> tag defines the entire description list. The <DT> tag defines the description term.
The <DD> tag defines the description term's definition.
Let us use the <DL> tag to create a definition list.
<!DOCTYPE html>
<HTML>
<HEAD> <TITLE> Definition List </TITLE> </HEAD>
<BODY>
<B> Example of Definition List </B>
170 Touchpad Web Applications-XI

