HTML and CSS Reference
In-Depth Information
<input> element: the list attribute. The attribute gets the name of a <datalist> element to be used as
the source of the input options.
When the input field gets the input focus, then the content of the <datalist> element is used to
autocomplete what the user is typing. Figure 2-6 shows the element in action on Internet Explorer.
FIGURE 2-6 The datalist element in action.
elements removed from older HTML versions
HTML5 adds some new elements, but also removes a few elements whose presence would only
increase redundancy once combined with the new capabilities of CSS and new elements in HTML5.
The list of elements no longer supported most notably includes