The HTML <ul> type Attribute is used to specifies that which kind of marker used in the list.
Note: The ul type attributes are not supported by HTML 5. Instead of using this attribute we can use CSS list-style-type Property.
Syntax:
<ul type="disc | circle | square">
Attribute Values:
- disc: Default. A filled circle.
- circle: An unfilled circle
- square A filled square.
Example 1:
html
<!DOCTYPE html>
< html >
< head >
< title >HTML ul type attribute</ title >
</ head >
< body >
< h1 >GeeksforGeeks</ h1 >
< h2 >HTML ul type attribute</ h2 >
< p >GeeksforGeeks courses List:</ p >
< ul >
< li >Geeks</ li >
< li >Sudo</ li >
< li >Gfg</ li >
< li >Gate</ li >
< li >Placement</ li >
</ ul >
</ body >
</ html >
|
Output:

Example 2:
html
<!DOCTYPE html>
< html >
< head >
< title >HTML ul type attribute</ title >
</ head >
< body >
< h1 >GeeksforGeeks</ h1 >
< h2 >HTML ul type attribute</ h2 >
< p >GeeksforGeeks courses List:</ p >
< ul type = "square" >
< li >Geeks</ li >
< li >Sudo</ li >
< li >Gfg</ li >
< li >Gate</ li >
< li >Placement</ li >
</ ul >
</ body >
</ html >
|
Output:

Supported Browsers: The browser supported by HTML <ul> Type attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!