HTML - Lists Tag

 
Example (Unordered List):
<HTML>
<HEAD>
<TITLE>Unordered List Example</TITLE>
</HEAD>
<BODY>
<P>Netscape Composer offers the following benefits</P>
<UL type=”square”>
<LI>Edit web pages directly in Navigator
<LI>Easy options 4 setting background and link colors
<LI>No need to learn HTML
</UL>
</BODY>
</HTML>
 
Unordered Lists displays a simple bullet before each item list. <UL> and </UL> tags are used for declaring a list as an unordered. It is a non-empty tag. <LI> tag is used to list out the items in the list. It is an empty tag. Various attributes of
 
<UL> tag are as follows:
type: It specifies which type of bullet to use. Possible values are disc (default), square and circle.
 
Example (Ordered List):
<HTML>
<HEAD>
<TITLE>Ordered List Example</TITLE>
</HEAD>
<BODY>
<P> Steps for how to create HTML files : </P>
<OL type=”I” start=3>
<LI>Edit Use a text editor to create your HTML file.
<LI>Put the HTML files on a web server.
<LI>Test the files by viewing them in a web browser.
</OL>
</BODY>
</HTML>
 
Ordered Lists displays a bullet or numbers before each item list. <OL> and </OL> tags are used for declaring a list as an ordered. It is a non-empty tag. <LI> tag is used to list out the items in the list. It is an empty tag. Various attributes of
 
<OL> tag are as follows:
type: It specifies which type of bullet to use. Possible values are a (lowercase letters), A (uppercase letters), I (large roman numbers), I (small roman numbers) and 1 (default numbering system).
 
start: This attribute specifies the starting number of the list if it is other than 1
 
Example (Definition List):
<HTML>
<HEAD>
<TITLE>Definition List Example</TITLE>
</HEAD>
<BODY>
<DL>
<DT><U>ActiveX</U>
<DD>A technology developed by Microsoft for sharing information among different applications.
<DT><U>GIF</U>
<DD>It is Graphics Interchange format
<DT><U>HRML</U>
<DD>It is Hyper Text Markup Language
</DL>
</BODY>
</HTML>
 
<DL> and </DL> tags are used to create Definition List. It is a non-empty tag. <DT> tag is used for definition term i.e. the heading. It is an empty tag. <DD> tag is used for definition data i.e. the description of the term. It is an empty tag.