Answers Search Help
Boston University home page
HTML: Intermediate
 
 
    Site Management
 
 
    Linking
 
 
 
 
 
 
    HTML Lists
 
 
 
 
    Tables
 
 
 
 
 
 
    Special Characters
 
 
    Supplementary
 
 
 
    Also See
   
   
   

Unordered Lists

An unordered list is simply a number of bulleted items. Opening and closing tags are required. Line breaks are not required in lists. Each new item in the list assumes a new line.

<ul> - opening tag
</ul> - closing tag

You are required to use list item tag <li> and </li> for each item in your list.

Code example:

Here are countries I want to visit:<br>

<ul> <li>Australia</li> <li>Switzerland</li>

<li>Brazil</li> <li>Japan</li> </ul>

Result:

Here are the countries I want to visit:

  • Australia
  • Switzerland
  • Brazil
  • Japan

You can create different types of bullets by setting a type variable. The variable options are:

  • type="disc" -- list items are preceded by a solid, round bullet
  • type="square" -- list items are proceeded by a solid, square bullet
  • type="circle" -- list items are proceeded by an outlined, round bullet

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007