Lists Reference Sheet

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Lists

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

Useful for organizing terms and descriptions


The order of the coded tags is very important when coding these lists. They should be coded like this
example

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

You might also like