X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <ul> type Attribute

HTML ul Tag Reference 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 »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The type attribute is supported in all major browsers.


Definition and Usage

The type attribute specifies the kind of marker to use in the unordered list.


Compatibility Notes

The type attribute of <ul> is not supported in HTML5. 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

<ul type="disc|circle|square">

Attribute Values

Value Description
disc Default. A filled circle
circle An unfilled circle
square A filled square


HTML ul Tag Reference HTML <ul> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook