Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ordered HTML Lists
- An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
- The list items will be marked with numbers.
- Ordered List:
- <ol>
- <li>Coffee</li>
- <li>Milk</li>
- </ol>
- Try it Yourself »
- Ordered HTML Lists - The Type Attribute
- A type attribute can be added to an ordered list, to define the type of the marker:
- Type Description
- type="1" The list items will be numbered with numbers (default)
- type="A" The list items will be numbered with uppercase letters
- type="a" The list items will be numbered with lowercase letters
- type="I" The list items will be numbered with uppercase roman numbers
- type="i" The list items will be numbered with lowercase roman numbers
- Numbers:
- <ol type="1">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Milk</li>
- </ol>
- Try it Yourself »
- Upper Case:
- <ol type="A">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Milk</li>
- </ol>
- Try it Yourself »
- Lower Case:
- <ol type="a">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Milk</li>
- </ol>
- Try it Yourself »
- Roman Upper Case:
- <ol type="I">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Milk</li>
- </ol>
- Try it Yourself »
- Roman Lower Case:
- <ol type="i">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Milk</li>
- </ol>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement