Yahoo India Web Search

Search results

  1. Learn how to use the HTML tag to create a list of pre-defined options for an element. The tag provides an autocomplete feature for input fields and is supported by most browsers.

    • Overview
    • Try it
    • Attributes
    • Examples
    • Accessibility concerns
    • Browser compatibility
    • See also

    The HTML element contains a set of elements that represent the permissible or recommended options available to choose from within other controls.

    To bind the element to the control, we give it a unique identifier in the id attribute, and then add the list attribute to the element with the same identifier as value. Only certain types of support this behavior, and it can also vary from browser to browser.

    This element has no other attributes than the global attributes, common to all elements.

    Textual types

    Recommended values in types text, search, url, tel, email and number, are displayed in a drop-down menu when user clicks or double-clicks on the control. Typically the right side of a control will also have an arrow pointing to the presence of predefined values.

    Date and Time types

    The types month, week, date, time and datetime-local can show an interface that allows a convenient selection of a date and time. Predefined values can be shown there, allowing the user to quickly fill the control value.

    Range type

    The recommended values in the range type will be shown as series of hash marks that the user can easily select.

    When deciding to use the element, here are some accessibility issues to be mindful of:

    •The font size of the data list's options does not zoom, always remaining the same size. The contents of the autosuggest do not grow or shrink when the rest of the contents are zoomed in or out.

    •As targeting the list of options with CSS is very limited to non-existent, rendering can not be styled for high-contrast mode.

    •Some screen reader/browser combinations, including NVDA and Firefox, do not announce the contents of the autosuggest popup.

    BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.

    •The element, and more specifically its list attribute;

    •The element.

  2. Dec 26, 2023 · Learn how to use the HTML tag to provide autocomplete feature in HTML forms. See examples, syntax, supported browsers and related tags.

  3. Jun 26, 2024 · The HTML Datalist is a powerful tool that can significantly enhance the user experience on your website. Learn the impact of HTML Datalist in web forms.

  4. Learn how to use the HTML tag to provide pre-arranged options for an input element. See examples of different input types and how to link them with the tag.

  5. Sep 25, 2023 · Learn how to use the HTML tag to create a drop-down list for an input field with predefined options. See practical examples, key attributes, and tips for proper usage and compatibility.

  6. People also ask

  7. The element provides a list of predefined options or suggestions for user input in a text input field. Learn how to use it with the element, see an example, and check browser compatibility.

  1. People also search for