EN
HTML - date input
3
points
In this article, we would like to show you how to create date input in HTML.
Quick solution:
// ONLINE-RUNNER:browser;
<input type="date" name="input-name" />
Practical example
In this example, input date is limited by min and max value.
// ONLINE-RUNNER:browser;
<!doctype html>
<html>
<body>
<input type="date"
name="event-date"
value="2021-02-18"
min="2021-01-01"
max="2021-03-01" />
</body>
</html>