What’s the correct way to use new input types in html5 maintaining fallback for no support?

The title is pretty explanatory, basically I want to use a new input type in this case "search" while falling back to a type="text" if the browser doesn't support search.

I was guessing it could be like this:

<input type="text" type="search" name="s" placeholder="Search posts">

But I'm not sure.

How is this usually done?

Read more here: https://stackoverflow.com/questions/12225955/whats-the-correct-way-to-use-new-input-types-in-html5-maintaining-fallback-for

Content Attribution

This content was originally published by lisovaccaro at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: