Articles → HTML 5 → Month Input Element In Html5
Month Input Element In Html5
Purpose
Syntax
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Month Input Form</title>
</head>
<body>
<form>
<label for="monthInput">Select a month:</label>
<input type="month" id="monthInput" name="monthInput">
</form>
</body>
</html>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
12.0 | Not Supported | 25.0 | Not Supported | 10.1 | Yes |