HTML Value Syntax
HTML valid month syntax
A positive year with at least four digits followed by a hyphen and a month from 01 to 12. It represents a calendar month, not a day or a duration. This is a value grammar, not a standalone HTML element.
Formal Syntax & Structure
html syntaxhtml
YYYY-MMWorking Example
Example Snippethtml
<label> Billing month <input type="month" value="2026-12"></label>