A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-input-typemonth/ below:

HTML <input type="month"> - GeeksforGeeks

HTML <input type="month">

Last Updated : 20 May, 2024

The HTML <input type="month"> element creates a month picker, allowing users to select a specific month and year without specifying a day. It provides a standardized way to input month-based data to enhance user experience.

Syntax
<input type="month"> 

Example: This example demonstrate the use of HTML <input type="month"> element.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>
        HTML Input Type Month
    </title>
</head>

<body style="text-align:center;">

    <h2>HTML &lt;input type="month"&gt;</h2>

    <form id="#">
        <label for="month">Enter Month:</label>
        <input type="month" id="month" name="month">
    </form>
</body>

</html>

Output

Supported Browsers

The browsers supported by <input type="month"> are listed below:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4