HOME    articles    tutorials    tool directory    books    about

Free Email
META Tag Generator

Our Other Sites

GoTraining
Get Training on what you need.

GoExam
Certification practice tests with free demos to download.

GoCertify
Complete computer certification resource center covering virtually every IT certification.

SearchCertify
links, links and more certification links!

Creating Bulleted or Numbered Lists

Another easy thing you can do with HTML is create lists. Lists can be numbered (called ordered) or bulleted (called unordered). When you use an HTML list tag, the bullets or numbers are inserted automatically before each line item. An ordered list looks like this:
  1. Thing one.
  2. Thing two.
  3. Thing three.
An unordered (or bulleted) list looks like this:
  • Thing one.
  • Thing two.
  • Thing three.
A list is started with either <UL> (for unordered list) or <OL> (for an ordered list). Both of these have closing tags, and by now you probably know exactly what they look like: </UL> and </OL>.

Between the list opening and closing tags are a series of list item <LI> tags. These tell the browser where to put the bullets or numbers. Closing </LI> tags are optional. You can add them if you like, but it won't cause an error if you don't. So to create a list like the first (numbered) one above, you'd write the following HTML:

<OL>
<LI>Thing one.
<LI>Thing two.
<LI>Thing three.
</OL>

You can control the starting number, as well as the style of both bullets and numbers, by using attributes available for <OL> and <UL>. If you want to use them, check an HTML reference such as the one at the end of the Cheap Web Tricks book for the exact syntax.

previous pagenext page


HOME    articles    tutorials    tool directory    books    about

(c) copyright 2000-2010 Anventure.  All Rights Reserved.
privacy policy