Name

week

Type

input

Synopsis

How to render a url input field

Description

input elements of type="week" create input fields allowing easy entry of a year plus the ISO 8601 week number during that year (i.e., week 1 to 52 or 53).

Parameters

type="week"

Example

<form action="get">
  <label for="week">Choose a week in May or June:</label>
  <input type="week" name="week" id="camp-week" min="2023-W18" max="2023-W26" required="required" />
  <input type="submit" value="Go" />
</form>

Note

Links

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/week