Filter (Advanced Search)
Downloads
0
Views
230
Video

Video is not available... Embedded is previous playlist.

Details

The <input type="color"> is used for input fields that should contain a color.

Depending on browser support, a color picker can show up in the input field.


<!DOCTYPE html>
<html>
<body>

<h2>Show a Color Picker</h2>

<p>The <strong>input type="color"</strong> is used for input fields that should contain a color.</p>

<form action="/php/inputColor.php">
  <label for="favcolor">Select your favorite color:</label>
  <input type="color" id="favcolor" name="favcolor" value="#ff0000">
  <input type="submit" value="Submit">
</form>

<p><b>Note:</b> type="color" is not supported in Internet Explorer 11 or Safari 9.1 (or earlier).</p>

</body>
</html>



Ad