KnowledgeBoat Logo

Computer Applications

Discuss the use of <UL> and <LI> tags with suitable examples of each.

HTML Intro

9 Likes

Answer

The <UL> tag is used to define an unordered list. It indents each item in the list and adds a bullet against each of them. The <LI> tag is used to display the listed items in an unordered or ordered list.

Consider the following example,

<HTML>
<BODY>
FRUITS
<UL>
<LI>Mango</LI>
<LI>Apple</LI>
<LI>Guava</LI>
<LI>Banana</LI>
</UL>
</BODY>
</HTML>

The list is displayed as follows:

FRUITS

  • Mango
  • Apple
  • Guava
  • Banana

Answered By

4 Likes


Related Questions