I need a timestamp input for an html form. Don't know if this is possible but I'm just starting out

html, input

Solution

You can use `step` attribute in your `input` tag:

<input type="time" name="timestamp" step="1">

W3C: input: type=time

Problem

So like I say i dont know if I am doing any of this correctly but I am basically teaching myself and I don't seem to be able to find anything about having a timestamp input field. It is actually for inputting timestamps from movies. ``` <div id="form"><form> First Name: <input type="text" name="firstname"> Last Name: <input type="text" name="lastname"> Movie Title: <input type="text" name="movietitle"> <p>Is the drink...</p> <input type="radio" name="drinktype" value="alcoholic">Alcoholic <input type="radio" name="drinktype" value="soft">Non-alcoholic <p>What exact time did the Buffalo occur during the movie?</p> <input type="time" name="timestamp"><br> <input type="submit" value="Submit"> </form></div> ``` I'm not showing anything CCS-wise for this because what I really want to know how to do is a timestamp input field first in this format hh:mm:ss Appreciate the help!

Original source