Computer >> Computer tutorials >  >> Programming >> Javascript

Style the numbering characters in an ordered list with CSS


The list-style-type property allows you to control the shape or style the numbering characters in ordered lists.

Example

<html>
   <head>
   </head>
   <body>
      <ol style = "list-style-type:decimal;">
         <li>India</li>
         <li>US</li>
         <li>UK</li>
      </ol>
   </body>
</html>