Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Unordered Lists

  • Unordered lists allow you to create lists with various bullet styles. However, those bullets are images, and thus, do not reflect the level of hierarchy except visually.

  • The basic unordered list involves three tags

  • The <UL> tag is used to open a list. The <LI> tag is used to signify a list element, and the </UL> tag is used to end a list.

  • For example, the following code could be used to create a list:

<HTML>
<HEAD>
<TITLE>Unordered List</TITLE>
</HEAD>
<BODY>
<B>Food</B>

<UL>
<LI>Vegetables

<UL>
<LI>Broccoli
<LI>Carrot
<LI>Pea
</UL>

<LI>Meat

<UL>
<LI>Chicken
<LI>Beef
<LI>Pork
</UL>

</UL>
</BODY>
</HTML>

  • The previous code would produce the following HTML list:

Food

  • Vegetables
    • Broccoli
    • Carrot
    • Pea
  • Meat
    • Chicken
    • Beef
    • Pork
Modifying the Bullet [1]
  • You can modify the look of the bullets by using the TYPE attribute in the <UL> tag.

  • The TYPE attribute supports the following VALUES: CIRCLE, DISC, or SQUARE

  • Below is some code that demonstrates the usage of the TYPE attribute.
<HTML>
<HEAD>
<TITLE>Unordered List</TITLE>
</HEAD>
<BODY>
<B>Food</B>
<UL TYPE = "SQUARE">
<LI>Vegetables
<UL TYPE = "DISC">
<LI>Broccoli
<LI>Carrot
<LI>Pea
</UL>
<LI>Meat
<UL>
<LI>Chicken
<LI>Beef
<LI>Pork
</UL>
</UL>
</BODY>
</HTML>
  • The previous code would appear as follows:

Food

  • Vegetables
    • Broccoli
    • Carrot
    • Pea
  • Meat
    • Chicken
    • Beef
    • Pork

Lists
Introduction to Web Design | Table of Contents
Ordered Lists


Up to => Home / Authoring / HTML / Tutorial




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers