1.

Differentiate between <OL> and <UL> tag  with suitable example. 

Answer»

<OL> stands for Ordered List which can be either numerical or alphabetical while <UL> stands for Unordered List which can be either disc, square or circle.

Code examples containing <OL> and <UL> is given below with their respective outputs:

HTML CODE AND OUTPUTHTML CODE AND OUTPUT
CODE
Hobbies
<OL>
<LI>
<LI>programming
<LI>Dramatics
</OL>
CODE
Hobbies
<UL>
<LI>Games
<LI>Programming
<LI>Dramatics
</OL>
OUTPUT
Hobbies
1.  Games
2. Programming
3. Dramatics

 
OUTPUT
Hobbies
1.  Games
2. Programming
3. Dramatics


Discussion

No Comment Found

Related InterviewSolutions