When writing in HTML, the tag is used to designate a list of options in the element. These options can be selected using a drop-down menu, or via autocomplete if the user starts typing one of them. The following sections contain information about the tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Choose your favorite color from this list:

Example result

If you hover your mouse cursor over the right side of the box, a down arrow appears. Click this arrow to choose your favorite color.

The tag belongs to a group of tags called form elements.

  • Example of code
  • Example result
  • Attributes
  • Additional form elements
  • Compatibility
  • Related information

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Additional form elements