The type attribute of the UL element changes the marker type.
The type attribute in the UL tag : Applied to all items in the list.
<ul type="circle">
<li>first list item</li>
<li>second list item</li>
<li>third list item</li>
</ul>
The type attribute in the LI tag : Applied to one item.
<ul>
<li type="disc">first list item</li>
<li type="circle">second list item</li>
<li type="square">third list item</li>
</ul>
| Attribute | Value | Explanation |
|---|---|---|
| type=" " | disc |
|
| circle |
|
|
| square |
|
The use of this attribute is deprecated. (Use CSS instead)
Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.
<ul type="circle">
<li>First list item</li>
<li>Second list item</li>
<li>Third list item</li>
</ul>
<ul> <li type="disc">Disc styles</li> <li type="circle">Circle styles</li> <li type="square">Square styles</li> </ul>