- Attribute of
- What does
- Specifies the bullet or numbering style for an individual list item.
<ul> <li>Bullet types I like <ul> <li type="disc">Discs</li> <li type="circle">Circles</li> <li type="square">Squares</li> </ul> </li> <li>Bullet types I don't like <ol> <li type="I">Roman Numerals</li> <li type="i">Lowercase Roman Numerals</li> </ol> </li> </ul>
- Bullet types I like
- Bullet types I don't like
- Roman Numerals
- Lowercase Roman Numerals
Deprecated, but still works
Though you should not rely on it, the
type attribute continues to work in most browsers. Typically you would want to control list item styling with CSS, but you can use the
type attribute for relatively trivial changes that override the style of the list as a whole. You should not, however, count on this feature.
Browser Support for type