HTML <ul> type Attribute
Example
Use of the type attribute in an unordered HTML list:
<ul type="square">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Try it Yourself »
Definition and Usage
The type attribute specifies the kind of marker to use in the unordered list.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Compatibility Notes
The type attribute of <ul> is not supported in HTML5. Use CSS instead.
CSS syntax: <ul style="list-style-type:square">
In our CSS tutorial you can find more details about the list-style-type property.
Syntax
<ul type="disc|circle|square">
Attribute Values
Value | Description |
---|---|
disc | Default. A filled circle |
circle | An unfilled circle |
square | A filled square |
