Introduction
Account Policies
Problem Solving
Instructor Help
General help by subject
Hypertext and the web
Remote access
Contact NWE Help
Main help page
NWE Help: Web: Authoring: HTML: Lists
NWE Home :: Help :: Web :: Authoring :: HTML
Ordered and Unordered Lists
There are several list types available in HTML. The main two are ordered (numbered) and unordered lists (bulleted). Both of these require the list item tag <li> </li> for each list item. See the examples below.
The ORDERED LIST tag <OL> </OL> is used to create a numbered list to display your list text.
| The Code and the Way it Appears on a Webpage | |
|---|---|
|
<OL> |
|
The UNORDERED LIST tag <uL> </uL> is used to create a bulleted list to display your list text:
|
<uL> |
|
Definition Lists
Definition Lists align one word to be flushleft and then have a section below for the text, which is indented slightly to the right. This is a handy way to offer instructions, or to provide definitions, hence the name.
|
<dL> |
............ |
|
Replacing Standard Bullets With Graphic Bullets
You can use graphic bullets to replace the standard text bullets by using the "Definition List" tag. <DL>
<DL>
<DD><IMG SRC="yourimage.gif">List Item one</DD>
<DD><IMG SRC="yourimage.gif">List Item two</DD>
<DD><IMG SRC="yourimage.gif">List Item three</DD>
<DD><IMG SRC="yourimage.gif">List Item four</DD>
</DL>
This works out to look like this:
List Item 1
List Item 1
List Item 1
List Item 1
Changing the type of Bullet in Lists
To change the type of bullet used in an unordered list, add the type attribute to the unordered list tag: <ul type="disc" >
type="disc"
Solid circular bullets; this is the default value.
type="square"
Solid square bullets.
type="circle"
Hollow circular bullets.
Changing the Numbering Style on an Ordered List
To change the type of ordering in an ordered list, add the type attribute to the unordered list tag: <<ol type="a" >/P>
type="a"
Orders the list by lowercase letters (i.e. a, b, c, d).
TYPE="A"
Creates a list ordered by capital letters (i.e. A, B, C, D).
TYPE="I"
Creates a list ordered by capital Roman numerals (i.e. I,II, III, IV).
type="i"
Creates a list ordered by lower-case Roman numerals (i.e. i, ii, iii, iv).
type="1"
Creates a list ordered by digits (i.e. 1, 2, 3, 4, this is the default).
