Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

TYPE Attribute | type Property


Sets or retrieves the style of the list.

Syntax

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

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

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

Applies To

LI, OL, UL

     Property in Spain | Freelance | IT247 Computer Hardware | Pregnancy Forum | Novela historica
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp