The search type is used for search fields, like a site search, or Google search.
The search field behaves like a regular text field.
Input Type - color
The color type is used for input fields that should contain a color.The Opera browser will allow you to select a color from a color picker, Google's Chrome will only allow hexadecimal color values to be submitted:
Syntax:
Color: <input type="color" name="user_color" />
Example:
<!DOCTYPE html><html>
<body>
<form action="demo_form.asp" method="get">
Color: <input type="color" name="user_color" />
<input type="submit" />
</form>
</body>
</html>
No comments:
Post a Comment