Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

How to Code HTML Lists

A list is an arrangement of text about usually related items, and usually arranged vertically. The items may, or may not be arranged in a specific order. Each item in a list may be marked, or prefaced by a number, letter, or a graphic bullet or icon. Readers like lists because a list is more readable than a block of text and provides order in a more easily understandable way.

  1. bread
  2. milk
  3. eggs
  4. potatoes
  5. broccoli

In html, an entire list would be contained within the <ul> and </ul> tags. Each list item would be contained within <li> and </li> tags. Shown below is example code for a list.

<ul>
<li>bread</li>
<li>milk</li>
<li>eggs</li>
<li>potatoes</li>
<li>broccoli</li>
</ul>
  • bread
  • milk
  • eggs
  • potatoes
  • broccoli

If the order of the items in the list IS NOT important, use the <ul> and </ul> tags to create an unordered list. When you define an unordered list, the list items are automatically bulleted. Example code for an unordered list is shown above.

Ordered List

  1. bread
  2. milk
  3. eggs
  4. potatoes
  5. broccoli

If the order of the items in the list IS important, use the <ol> and </ol> tags to create an ordered list. When you define an ordered list, the list items are automatically numbered. Example code for an ordered list is shown below.

<ol>
<li>bread</li>
<li>milk</li>
<li>eggs</li>
<li>potatoes</li>
<li>broccoli</li>
</ol>

Nested Lists

  1. bread
  2. butter
  3. Vegetables:
    1. broccoli
    2. carrots
    3. potatoes
    4. onions
  4. eggs
  5. milk

You can nest a list within a list. Example code for an ordered list nested within an ordered list is shown below.

<ol>
<li>bread</li>
<li>butter</li>
Vegetables:
   <ol>
   <li>broccoli</li>
   <li>carrots</li>
   <li>potatoes</li>
   <li>onions</li>
   </ol>
<li>eggs</li>
<li>milk</li>
</ol>

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268