HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <datalist> tag

The <datalist> element specifies a list of pre-defined options for an <input> element.

This element is used to provide an "autocomplete" feature on <input> elements. Users will see a drop-down list of pre-defined options as they input data.

Run code

The list attribute points to a <datalist> element that contains pre-defined options for an <input> element.

The value of list attribute must be the id of a <datalist> element in the same document.

Browser compatibility

The numbers in the table specify the first browser version that fully supports the <datalist> element:

Element
<datalist> 20 4 9.5 not supported 10



Standard Attributes

The <datalist> tag does not support any standard attributes. See HTML Standard Attributes Reference

Global Attributes

The <datalist> tag supports the global attributes described in HTML Global Attributes Reference

Event Attributes

The <datalist> tag supports the event attributes described in HTML Events Reference

Last updated: Friday 21 Sep, 2018