Use of the type attribute in an unordered HTML list:
The type attribute specifies the kind of marker to use in the unordered list.
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
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.
Value | Description |
---|---|
disc | Default. A filled circle |
circle | An unfilled circle |
square | A filled square |