Latest web development tutorials

HTML ul type property

HTML ul tag Reference Manual HTML <ul> tag

Examples

Use the type attribute in unordered list:

<ul type="square">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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">

CSS Example: list-style-type

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 Reference Manual HTML <ul> tag