month attribute

<input type=month>

Explanation

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.

Limitations:

It will function only in Safari and Opera browsers.

Ask Questions

Ask Question