![]() |
The Depending on browser support, a time picker can show up in the input field. |
Example:
HTML
<form>
<label for="appt">Select a time:</label>
<input type="time" id="appt" name="appt">
</form>
Example:
HTML
<!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>
How is to look HTML Input Type Time | HTML Input Types |
Full Code Example of HTML Input Type Time | HTML Input Types |
Read Full: | HTML Input Types |
Category: | Web Tutorial |
Sub Category: | HTML Input Types |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 63 |
Reffered: https://www.w3schools.com/html/html_form_input_types.asp