Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Input Month
Input Month

Input month type is used to create month field and it takes month as well as year from users at the submission of data.

Syntax

<input type=month />


You can use month in forms and any where within an HTML document.


Example


Input is unpair tag and output of month is month field like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create a form
  • Create month field
  • Use input type submit with value=Send Month

save file with name task.html or task.htm and then open it using any browser and see results.


Solution



Don't forget input is empty element which means it always comes in single not in pair.