Lists
This page demonstrates how to create lists in your HTML pages.
You can copy and paste the following into your HTML editor. This code can serve as a starting point for your own HTML pages.
<ol>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
<li>Sunday</li>
</ol>
Here is an example using the code from above.
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
Let's try changing list to show letters instead of numbers. To do this, we can add the type attribute to the ol element and set it to "A" for uppercase letters or "a" for lowercase letters. Here is an example using uppercase letters:
<ol type="A">
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>Friday</li>
<li>Saturday</li>
<li>Sunday</li>
</ol>
Here is an example using the code from above.
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
Click here to see an example of an unordered list.