Horje

Full Code Example of Input Type Color

The input type="color" is used for input fields that should contain a color.
index.html
Example: HTML
<!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="/action_page.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.</p>

</body>
</html>

Output should be:

Full Code Example of Input Type Color




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Input Types
Uploaded by:
Admin