Home
HTML
HTML Input types
Tryit: input type = time
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>Show a Time Input Control</h1> <p>The <strong>input type="time"</strong> allows the user to select a time (no time zone):</p> <p>If the browser supports it, a time picker pops up when entering the input field.</p> <form action="/action_page.php"> <label for="appt">Select a time:</label> <input type="time" id="appt" name="appt"> <input type="submit" value="Submit"> </form> <p><strong>Note:</strong> type="time" is not supported in Internet Explorer 11.</p> </body> </html>