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>

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 03-Feb-2020

273 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements