TYPE Attribute | type Property

DHTML, HTML, & CSS

TYPE Attribute | type Property


Sets or retrieves the style of the list.

Syntax

HTML<ELEMENT TYPE = sType ... >
Scriptingobject.type [ = sType ]

Possible Values

sType String that specifies one of the following values:
1Associate 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 Roman numerals with each item in an ordered list.
IAssociate 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 with a default value of 1 for an ordered list and a default value of disc for an unordered list.

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

Example

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

Sample Code

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

This feature requires Internet Explorer 4.0 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

LI, OL, UL


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.