<label for="myColor">
Pick a color
<input type="color" id="myColor" name="color" />
</label>HTML forms in legacy browsers / notebook
HTML forms in legacy browsers
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<input type="button" value="click me" />input {
/* This rule turns off the default rendering for the input types that have a border,
including buttons defined with an input element */
border: 1px solid #cccccc;
}
input[type="button"] {
/* Revert the last border declaration */
border: revert;
}@supports (appearance: none) {
input[type="search"] {
appearance: none;
/* restyle the search input */
}
}function testDatetimeLocalSupport() {
const testInput = document.createElement("input");
testInput.setAttribute("type", "datetime-local");
return testInput.type !== "text";
}