HTML Ordered list tag is used to show information in the form of a list with the numbers at the start in each list item.
We can call this list as a numbered list.
Syntax
put list items here
List of pen companies:
- Peter Parker
- Sparkles
- Racer
- speedometer
- Reynold
- Finegrip
Output
List of pen companies:
- Peter Parker
- Sparkles
- Racer
- speedometer
- Reynold
- Finegrip
List of Type attribute options of HTML Ordered List
Sr. No. | Type Attribute options | Description |
---|---|---|
1 | 1 | Used to show ordered number list with 1,2,3…. |
2 | I | Used to show ordered number list with uppercase Roman Letter. |
3 | i | Used to show ordered number list with lowercase Roman Letter. |
4 | A | Used to show ordered number list with Uppercase Alphabet Letter. |
5 | a | Used to show ordered number list with lowercase Alphabet Letter. |
Ordered list with type=”1″
It is Used to show numeric ordered list.
List of best Comedy Characters:
- Mr. Beans
- The Three Stooges
- I Dream of Jinny
Output
List of best Comedy Characters:
- Mr. Beans
- The Three Stooges
- I Dream of Jinny
Ordered list with type=”I”
It is Used to show Uppercase Roman ordered list.
List of Comedians:
- Sir Mr. Charlie Chaplin
- Dave Chappelle
- Jim Cherry
- George Carlie
Output
List of Comedians:
- Sir Mr. Charlie Chaplin
- Dave Chappelle
- Jim Cherry
- George Carlie
Ordered list with type=”i”
It is Used to show Lowercase Roman ordered list.
List of Comedy Serials:
- Dennis the Mennis
- Small Wonder
- Big Bang Theory
Output
List of Comedy Serials:
- Dennis the Mennis
- Small Wonder
- Big Bang Theory
Ordered list with type=”A”
It is Used to show Uppercase Alphabet ordered list.
List of Non-Veg Foods:
- Chicken Tandoor
- Chicken Roasted
- Mutton Fry
Output
List of Non-Veg Foods:
- Chicken Tandoor
- Chicken Roasted
- Mutton Fry
Ordered list with type=”a”
It is Used to show Lowercase Alphabet ordered list.
List of best Sport Channels:
- Star Sports
- Ten Sports
- DD Sports
Output
List of best Sport Channels:
- Star Sports
- Ten Sports
- DD Sports
Resources and References of HTML ordered list tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github
The post Html Ordered list tag appeared first on Tutorialdeep.
This post first appeared on Tutorialdeep - An Online Web Development And Blogging Tutorial, please read the originial post: here