HTML 5 Search Input Text Field
New to HTML 5, is the search input field. We of course have the input field long ago. But HTML5 added add the new type attribute type=”search” which you can use as follow…
See live code here.
Note that HTML5 also supports the placeholder attribute.
And we see how this works in Chrome 8 …
See the placeholder text is shown in a lighter color. And when we start typing, the placeholder text disappears and an cancel “X” icon appears.
But for browser that support HTML5, you get all that built in for you by the browser.