ol type='' - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:ol

Introduction

You can change type of list using the attributes defined by the ol element.

You use the start attribute to define the ordinal value of the first item in the list.

If this attribute is not defined, the first item is assigned the ordinal value of 1.

You use the type attribute to indicate which marker should be displayed next to each item.

The following table shows the supported values for type attribute.

ValueDescription Example
1 Decimal numbers (default) 1., 2., 3., 4.
aLowercase Latin characters a., b., c., d.
AUppercase Latin characters A., B., C., D.
iLowercase Roman characters i., ii., iii., iv.
IUppercase Roman characters I., II., III., IV.

If the reversed attribute is defined, then the list is numbered in descending order.

Demo Code

ResultView the demo in separate window

<html>
   <head></head>
   <body></body>
</html><!--from www .ja va  2s.  c o m-->

Related Tutorials