HTML <ul> tag
When writing in HTML (hypertext markup language), the <ul> tag is a block element used to designate an unordered list. It is useful for creating bulleted lists, those where the order of the items is arbitrary. The following sections contain information about the <ul> tag, including an example of it in use, and related attributes and browser compatibility.
If you wanted to create an ordered list or numbered list, use the <ol> tag.
Example of <ul> code
<h3>Unordered List</h3> <ul>
<li>First bullet point</li>
<li>Second bullet point</li>
<li>Third bullet point</li>
</ul>
Each bullet is created using the <li> tag, which designates a list item.
Example result
Unordered list
- First bullet point
- Second bullet point
- Third bullet point
Deprecated attributes
All HTML tags support standard attributes that define the settings of an HTML element. In addition to the standard settings, the <ul> tag had the following unique attributes that are now deprecated.
Attribute | Description |
---|---|
compact | Designates that the list should appear smaller. |
type | Designates the type of markers to use in a list. |
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | All versions | All versions | All version | All versions | All versions |
Browser, Compatibility, Container tag, HTML li tag, HTML ol tag, List, Web design terms