HTML <ul> tag

Updated: 11/13/2018 by Computer Hope
HTML ul tag

When writing in HTML, 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.

Tip

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>
Tip

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

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. A deprecated attribute is one that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.

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