Skip to content
Related Articles

Related Articles

HTML | <input type=”month”>

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 02 Jun, 2022

The HTML <input type=”month”> is used to specify the control of month and year field. The value must be in the format of “YYYY-MM”. 


<input type="month"> 



<!DOCTYPE html>
        HTML input type month
<body style="text-align:center;">
    <h2>HTML &lt;Input type ="month"&gt;</h2>
    <form id="myGeeks">
        <input type="month" id="month_id"
                name="geeks" >



Supported Browsers: The browsers supported by <input type=”month”> are listed below:

  • Google Chrome 20.0 & above
  • Edge 12.0 & above
  • Opera 11 & above
  • Firefox not supported
  • Internet Explorer not supported
  • Safari not supported

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!