Open In App

HTML | <input type=”time”>

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <input type=”time”> is used to specify the entering time control field. 

Syntax:

<input type="time">

Example: 

HTML




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML input type time
    </title>
</head>
 
<body style="text-align:center;">
 
    <h1 style="color:green;">
        GeeksForGeeks
    </h1>
 
    <h2>HTML <input type="time"></h2>
     
    <form action="#">
        Input Time: <input type="time" name="time">
         
        <input type="submit" value="Submit">
    </form>
</body>
 
</html>                                   


Output:

  

Supported Browsers: The browsers supported by <input type=”time”> are listed below:

  • Google Chrome 20.0 and above
  • Edge 12.0 and above
  • Firefox 57.0 and above
  • Opera 10 and above
  • Safari 14.1 and above
  • Internet Explorer not supported

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads