Example

A simple <input> tag with time attribute:

Laboratory

description & Usage

The <input type="time"> attribute displays the time selector.

The selected value includes hours and minutes.

Notes

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
type="time"

Syntax

Attribute Values

Values Description