This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

time

Summary

An input field for entering a specific time value.

Overview Table

DOM Interface
HTMLInputElement

Examples

Basic usage. Accepts no seconds.

<input type="time" value="09:00" min="09:00" max="17:00">

Accepts seconds.

<input type="time" step="1">

Accepts only hours.

<input type="time" step="3600">

Notes

On Safari Mobile for iOS, setting display: block on an input of type="time" causes the text within the input to become vertically misaligned.