MMDT1021 Chapter 15 Notes - page 1

Creating Ordered Lists

Type not set (default = 1). Start not set (default = first in list).
Code Result
This is some text before the list.
<ol>
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li>This is the fourth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the third item in the list
  4. This is the fourth item in the list
This is some text after the list.
 
Type = A.
Code Result
This is some text before the list.
<ol type="A">
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li>This is the fourth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the fourth item in the list
  4. This is the third item in the list
This is some text after the list.
 
Type = i.
Code Result
This is some text before the list.
<ol type="i">
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li>This is the fourth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the third item in the list
  4. This is the fourth item in the list
This is some text after the list.
 
Type not set (default = 1). Start = 2.
Code Result
This is some text before the list.
<ol start="2">
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li>This is the fourth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the third item in the list
  4. This is the fourth item in the list
This is some text after the list.
 
Type = a. Start = 3.
Code Result
This is some text before the list.
<ol type="a" start="3">
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li>This is the fourth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the third item in the list
  4. This is the fourth item in the list
This is some text after the list.
 
Type = I. Start = 9. The fourth line has a value="1" attribute.
Code Result
This is some text before the list.
<ol type="I" start="9">
<li>This is the first item in the list</li>
<li>This is the second item in the list</li>
<li>This is the third item in the list</li>
<li value="1">This is the fourth item in the list (Numbered 1)</li>
<li>This is the fifth item in the list</li>
</ol>
This is some text after the list.
This is some text before the list.
  1. This is the first item in the list
  2. This is the second item in the list
  3. This is the third item in the list
  4. This is the fourth item in the list (Numbered 1)
  5. This is the fifth item in the list
This is some text after the list.