type attribute | type property
Sets or retrieves the style of the list.
Syntax
| HTML | <element type="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
-
Default. Associate numbers with each item in an ordered list.
-
Associate lowercase letters with each item in an ordered list.
-
Associate uppercase letters with each item in an ordered list.
-
Associate small Roman numerals with each item in an ordered list.
-
Associate large Roman numerals with each item in an ordered list.
-
Associate a solid disc with each item in an unordered list.
-
Associate a hollow circle with each item in an unordered list.
-
Associate a solid square with each item in an unordered list.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 10.2 (Deprecated)
Examples
This example uses the type attribute to set the line item markers to lowercase Roman numerals.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/type.htm
<ol type="i">
<li>First Item </li>
<li>Second Item </li>
<li>Third Item </li>
</ol>
See also