added color input (#27096)

* added color input

* Added further details and formatting
This commit is contained in:
Ayushman9454
2019-02-17 16:31:20 +05:30
committed by Manish Giri
parent 8c0d082b05
commit 93537670c0

View File

@ -82,6 +82,14 @@ Displays the reset button. The text which should be displayed in the button is i
<input type="reset" value="CANCEL">
</form>
```
### color
Allows color input through a color picker. The color which should be displayed by default in the box is in the `value` attribute, and should be specified in hexadecimal format.
```html
<form>
<input type="color" name="myfavcolor" value="#ba1e1e">
</form>
```
Note: `type="color"` is not supported in Internet Explorer 11.
There are more types of elements. For more information visit [MSDN]("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input") or [w3schools]("https://www.w3schools.com/Html/html_form_input_types.asp").
There are more types of elements. For more information visit [MSDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) or [W3schools](https://www.w3schools.com/Html/html_form_input_types.asp).