Professional Documents
Culture Documents
Lists Reference Sheet
Lists Reference Sheet
Lists Reference Sheet
We will work with three kinds of lists. Below are examples and coding for each list.
Ordered Lists
These are lists that display a numbering or letter system.
Example Coding
1. Clean toilet <ol>
2. Clean sink <li> Clean toilet </li>
3. Scrub floor <li> Clean sink </li>
<li> Scrub floor </li>
</ol>
You can change the numbering to letters with a simple addition to the text.
Example Coding
a. Clean toilet <ol type="a">
b. Clean sink <li> Clean toilet </li>
c. Scrub floor <li> Clean sink </li>
<li> Scrub floor </li>
</ol>
Value Coding
1 Default no need to change
A. <ol type="A">
a. <ol type="a">
I <ol type="I">
Unordered Lists
These are lists that use bullet points.
Example Coding
Chocolate <ul>
Vanilla <li> Chocolate </li>
Strawberry <li> Vanilla </li>
<li> Strawberry </li>
</ul>
Lists
Description Lists
Example Coding
Cleveland <dl>
A city in Ohio <dt> Cleveland</dt>
Tampa <dd> A city in Ohio </dd>
A city in Florida <dt> Tampa </dt>
Atlanta <dd> A city in Florida </dd>
A city in Georgia <dt> Atlanta </dt>
<dd> A city in Georgia </dd>
</dl>
Lists