HTML: input type="week"
The week input collects a calendar year and week, which is useful for schedules or reports organized by whole weeks.
What you will learn
- How to label a week field
- How the submitted week value is represented
- When a date or date-range input is clearer
Minimal example
<label for="report-week">Report week</label>
<input id="report-week" name="report-week" type="week" required>The submitted value uses a year-and-week representation such as 2026-W10. The picker UI and visible formatting can vary by browser.
Common mistakes
- Explain which week convention your service uses when it matters.
- Use a date or date-range field when users need to choose exact days.
- Validate the allowed period and interpret the week consistently on the server.