Attributes · <input type="week">
Which HTML input type=week attributes matter?
These attributes decide how the <input type="week"> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does | Docs |
|---|---|---|
value | The default week in YYYY-Www format (such as 2026-W45). This is also the format the form submits. | MDN |
min | The earliest week allowed, in YYYY-Www format (such as 2026-W01). | MDN |
max | The latest week allowed, in YYYY-Www format (such as 2026-W52). | MDN |
step | The step in weeks. The default is 1. Use 2 to allow every other week, counted from min. | MDN |
required | Requires a week to be chosen before the form can be submitted. | MDN |




