HTML <ul> type attribute
HTML <ul> tag
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 style of the bullet points
in an unordered list.
Browser Support
The type attribute is deprecated, but still supported in all major browsers.
Compatibility Notes
The type attribute of the ul element was deprecated in HTML 4.01,
and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <ul style="list-style-type:square">
CSS Example: list style type
In our CSS tutorial you can find more details about the
list-style-type property.
Syntax
Attribute Values
Value |
Description |
disc |
Default. A filled circle |
circle |
An unfilled circle |
square |
A filled square |
HTML <ul> tag
|
|
|