-4

I am trying to get type of ordered list which is shown below any one please help to solve this.

How to get (a) (b) (c) This types of ol (with the brackets) in html?

Paulie_D
  • 107,962
  • 13
  • 142
  • 161
Rocky_rif
  • 3
  • 2

1 Answers1

1

You can customize the list marker and using list-item counter

You can customize the list-style-type by changing the lower-alpha to list style type

ol li::marker {
  content: "(" counter(list-item, lower-alpha) ") ";
}
<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>
kennarddh
  • 2,186
  • 2
  • 6
  • 21
  • Change ``lower-alpha`` to ``upper-alpha`` for capital letters: ``(A)``, ``(B)``, ``(C)`` and so on. – OMi Shah Aug 17 '22 at 11:27