Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
Month Attribute | Input Types | HTML5 Tutorial | Example

month attribute

<input type=month>


Month Attribute entitles the user to pick a month with its respective year.

Example Code:

Result :
Choose the month and year:
  • Select month with the respective year from the input field.
  • If the attribute is not applicable in a web browser, then the output shown will be the entered text.


It will function only in Safari and Opera browsers.

Ask Questions

Ask Question