<ol> tag in HTML

The <ol> tag stands an ordered list in HTML document. The <ol> tag is used to defines a list that can be start with a numerical or alphabetical.

  • Open and close tag required of <ol>.

Example of <ol> tag

Result Look Like

  1. Apple
  2. Green Apple
  3. Banana
  4. Grapes

  1. Apple
  2. Green Apple
  3. Banana
  4. Grapes

<ol> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<ol> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "compact" attribute is not supported in HTML5:

Attribute Value Description
reversed reversed Defines that the list order should be descending (7,6,5...)
type circle
square
disc
1
A
a
I
i
Defines which kind of bullet point will be used
start number Defines the value of a list item (only for <ol> lists).

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)