Open In App

HTML | <input type=”time”>

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

Syntax:



<input type="time">

Example: 




<!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:

Article Tags :