type attribute | type property

Sets or retrieves the style of the list.

Syntax

HTML<element type="p" ... >
JavaScript

p = object.type

Property values

Type: String

1

Default. Associate numbers with each item in an ordered list.

a

Associate lowercase letters with each item in an ordered list.

A

Associate uppercase letters with each item in an ordered list.

i

Associate small Roman numerals with each item in an ordered list.

I

Associate large Roman numerals with each item in an ordered list.

disc

Associate a solid disc with each item in an unordered list.

circle

Associate a hollow circle with each item in an unordered list.

square

Associate a solid square with each item in an unordered list.

Standards information

Examples

This example uses the TYPE attribute to set the line item markers to lowercase Roman numerals.


<OL TYPE="i">
<LI>First Item
<LI>Second Item
<LI>Third Item
</OL>

See also

li
ol
ul

 

 

Build date: 10/15/2012

Show:
© 2014 Microsoft