Language

Input Type Time


The input type="time" helps the user enter a specific time. If this input element is not empty, the user must set it to a valid time string. The user will be able to change the value of the input element.


Note: Some browsers do not display the time icon in the input type="time" element.

A detailed explanation of the input type time has been provided

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <label for="entTime">Enter Time</label>
        <input type="time" id="entTime">
        <input type="submit" value="Submit">
    </form>
</body>
</html>