Example of creating an unordered list inside an ordered list.

Q8. Provide an example of creating an unordered list inside an ordered list.

Ans.

The following source code allows you to create an unordered list inside an ordered list:

<HTML>

<HEAD>

<TITLE>

</TITLE>

</HEAD>

<BODY>List the details of students:

<OL>

<LI> Kavya Sharma

<UL TYPE=”circle”>

<LI> Passed 10th in 1999 </LI>

<LI> Passed 12th in 2001</LI>

<LI> Passed B.COM in 2004</LI>

<LI> Passed MCA in 2008</LI>

</UL>

</LI>

<LI> Ambar

<UL TYPE=”circle”>

<LI> Passed 10th in 1998 </LI>

<LI> Passed 12th in 1999</LI>

<LI> Passed B.A. in 2002</LI>

</UL>

</LI>

<LI> Aashi

<UL TYPE=”circle”>

<LI> Passed 10th in 1997 </LI>

<LI> Passed 12th in 1998</LI>

<LI> Passed BCA in 2001</LI>

</UL>

</LI>

<LI> Anjali Gupta</LI>

<LI> Parth Upreti </LI>

</OL>

</BODY>

</HTML>

The output of the above mentioned code is shown in Figure:

Creating an Unordered List Inside an Ordered List

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: