Loading

Quipoin Menu

Learn • Practice • Grow

html / Ordered Lists
interview

Q1. What tag creates an ordered list?
The <ol> (ordered list) tag creates a numbered list where order matters.

Q2. What are the different numbering types for ordered lists?
Types include decimal (1,2,3), lower-alpha (a,b,c), upper-alpha (A,B,C), lower-roman (i,ii,iii), upper-roman (I,II,III).

Q3. How do you change the numbering type?
Use the type attribute: <ol type="A"> for uppercase letters, or CSS list-style-type property.

Q4. What does the start attribute do?
The start attribute specifies the starting number of an ordered list, e.g., <ol start="5"> starts from 5.

Q5. What does the reversed attribute do?
The reversed attribute makes the list count down (3,2,1) instead of up (1,2,3).