CSCI 121 - Lecture 5 - Lists

Unordered List

Default type

Type="square"

Type="circle"

style="list-style-type:circle"

Ordered List

Default

  1. Item 1
  2. Item 2
  3. Item 3

reversed="reversed"

  1. Item 1
  2. Item 2
  3. Item 3

start="10"

  1. Item 1
  2. Item 2
  3. Item 3

type="A" (other types: a, i, I, 1)

  1. Item 1
  2. Item 2
  3. Item 3

Nested (hierarchical) Lists

Unordered lists

Ordered lists

  1. Item 1
  2. Item 2
    1. Sub-item 1
    2. Sub-item 2
      1. Level 3 item 1
      2. Level 3 item 2

HTML Colors