Click to Rate and Give Feedback
Properties
 type Property
TYPE Attribute | type Property

Sets or retrieves the style of the list.

Syntax

HTML<ELEMENT TYPE = sType... >
Scripting[ sType = ] object.type

Possible Values

sTypeString that specifies or receives one of the following values.
1Default. Associate numbers with each item in an ordered list.
aAssociate lowercase letters with each item in an ordered list.
AAssociate uppercase letters with each item in an ordered list.
iAssociate small Roman numerals with each item in an ordered list.
IAssociate large Roman numerals with each item in an ordered list.
discAssociate a solid disc with each item in an unordered list.
circleAssociate a hollow circle with each item in an unordered list.
squareAssociate a solid square with each item in an unordered list.

The property is read/write. The property has a default value of 1.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Example

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>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is deprecated in HTML World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

LI, OL, UL
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker