I’m busy with something for school in HTML 5.
So here is my bit of code
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="your name" required><br>
So my question actually is:
What is the difference between the NAME and the ID? purpose? which one is more important?
In short, the
nameis the identifier that is sent to the server when you submit the form. Theidis a unique identifier for the browser, clientside, for javascript and such.