HTML Value Syntax

HTML valid week syntax

An ISO week-numbering year followed by -W and a two-digit week number. Weeks start on Monday; week 01 contains January 4. Week 53 exists only in some years, and the week year can differ from a date’s calendar year. This is a value grammar, not a standalone HTML element.

Formal Syntax & Structure

html syntaxhtml
YYYY-Www

Working Example

Example Snippethtml
<label>  Work week  <input type="week" value="2020-W53"></label>
HTML Reference