HTML ul type property
Examples
Use the type attribute in unordered list:
<ul type="square">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
try it"
Browser Support
All major browsers support the type attribute.
Definition and Usage
HTML5 is no longer supported <ul> type attribute. Use CSS instead.
<Ul> type attribute is deprecated in HTML 4.01.
type attribute specifies the type of a bulleted list.
Compatibility Notes
HTML5 is no longer supported <ul> type attribute. Use CSS instead.
CSS Syntax: <ul style = "list-style-type: square">
In our CSS tutorial you can find more information about the list-style-type property detail.
grammar
<ul type="disc|circle|square">
Property Value
value | description |
---|---|
disc | Defaults. Filled circle. |
circle | Open circles. |
square | Filled squares. |
HTML <ul> tag