VOOZH about

URL: https://www.geeksforgeeks.org/html/html-input-typetime/

⇱ HTML <input type="time"> - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <input type="time">

Last Updated : 20 May, 2024

The HTML <input type="time"> element creates a time input field, allowing users to select a time (including hours and minutes) from a pre-defined list or by entering it manually. It provides a standardized way to input time values, enhancing user experience in forms that require time-based inputs.

Syntax

<input type="time">

Example: This example demonstrates the use of HTML <input type="time"> element.

Output

👁 HTML-Input-Type-Time

Supported Browsers

The browsers supported by <input type="time"> are listed below:

  • Chrome 20
  • Edge 12
  • Firefox 57
  • Opera 10
  • Safari 14.1
Comment
Article Tags: