HTML Input Type="color" - W3Schools
Có thể bạn quan tâm
HTML <input type="color">
❮ HTML <input> type attribute
Example
Show a color picker (with a predefined red value):
<label for="favcolor">Select your favorite color:</label><input type="color" id="favcolor" name="favcolor" value="#ff0000"> Try it Yourself »Definition and Usage
The <input type="color"> defines a color picker.
The default value is #000000 (black). The value must be in seven-character hexadecimal notation.
Tip: Always add the <label> tag for best accessibility practices!
Browser Support
The numbers in the table specify the first browser version that fully supports the element.
Attribute | |||||
---|---|---|---|---|---|
type="color" | 20.0 | 38.0 | 29.0 | 10.1 | 11.01 |
Syntax
<input type="color">❮ HTML <input> type attribute
★ +1 Track your progress - it's free! Log in Sign UpTừ khóa » Html Color Input
-
- HTML: HyperText Markup Language | MDN"> - HTML: HyperText Markup Language | MDN
-
Input Type Color - With Color Picker - Tryit Editor V3.7
-
HTML Input Type="color" Attribute - Dofactory
-
- GeeksforGeeks">HTML | - GeeksforGeeks
-
How To Add A Color Picker In HTML
-
Color Input Type | Can I Use... Support Tables For HTML5, CSS3, Etc
-
How To Style Color Picker Window In An Input[type=color]?
-
HTML DOM Input Color Object - W3Schools
-
Color Picker - HTML Color Codes
-
Color Type - HTML5 Forms - Wufoo
-
- CodeProject Reference">Html - CodeProject Reference
-
Input[type="color"] Element (html)
-
How To Use Input Type Field With The Color Picker In HTML?