Horje
How to create Ordered HTML List - The Type Attribute

The type attribute of the <ol> tag, defines the type of the list item 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

 


Basic Example of Ordered HTML List - The Type Attribute

The HTML <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.
index.html
Example: HTML
 <ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol> 

Output should be:

Basic Example of Ordered HTML List - The Type Attribute





Related Articles
What is HTML Lists HTML Lists
How to create HTML Lists HTML Lists
How to create Unordered HTML List HTML Lists
How to create Ordered HTML List HTML Lists
How to create HTML Description Lists HTML Lists
How to create Unordered HTML List - Choose List Item Marker HTML Lists
How to create Nested HTML Lists HTML Lists
How to create HTML Horizontal List with CSS HTML Lists
How to create Ordered HTML List - The Type Attribute HTML Lists
How to create HTML Ordered HTML List Number HTML Lists
How to create HTML Ordered Uppercase Letters HTML Lists
How to create HTML Ordered Lowercase Letters HTML Lists
How to create HTML Ordered Uppercase Roman Numbers HTML Lists
How to create HTML Ordered Lowercase Roman HTML Lists
How to create HTML Control List Counting HTML Lists

Single Articles
Basic Example of Ordered HTML List - The Type AttributeHTML Lists

Read Full:
HTML Lists
Category:
Web Tutorial
Sub Category:
HTML Lists
Uploaded by:
Admin
Views:
83


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_ordered