Use the <ul> tag in HTML to create an unordered list.
The <ul> tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
Type | disc circle square | Deprecated − Specifies the style of the bullet. |
Compact | compact | Deprecated − Defines if compact rendering is required. |
Example
You can try to run the following code to add an unordered list −
<!DOCTYPE html> <html> <head> <title>HTML ul Tag</title> </head> <body> <p>Countries</p> <ul> <li>US</li> <li>UK</li> <li>India</li> <li>Australia</li> <li>Bangladesh</li> </ul> </body> </html>