marker types


<ul type=""><li type="">

Browser
Internet Explorer Firefox Opera
Type
Block-level Deprecated

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
  • disc styles
circle
  • circle styles
square
  • square styles

The use of this attribute is deprecated. (Use CSS instead)

Tips and Notes

Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.


Example

<ul type="circle">
<li>First list item</li>
<li>Second list item</li>
<li>Third list item</li>
</ul>
Output
  • First list item
  • Second list item
  • Third list item

<ul>
<li type="disc">Disc styles</li>
<li type="circle">Circle styles</li>
<li type="square">Square styles</li>
</ul>
Output
  • Disc styles
  • Circle styles
  • Square styles