HTML <ul> with type Attribute

You are Here:

HTML <ul> with type Attribute

The type attribute specifies the style for the list items.

Warning: The type attribute is deprecated and is no longer recommended.

Tips: To apply style for the list items, try any of the following methods:

  • Using style global attribute: <ul style="list-style-type: circle">.
  • Using CSS list-style-type property.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <ul type="square"> <li>Apple</li> <li>Banana</li> </ul> </body> </html>

Attribute Values

NameExplanation
circleSpecifies the bullet shape is circle.
discSpecifies the bullet shape is disc.
squareSpecifies the bullet shape is square.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author