Forms
A form groups inputs. Each input needs a label so people know what to type. The for attribute of the label matches the id of the input.
Common input types are text, email, password, number, checkbox and radio. A button of type submit sends the form.
Example
<form>
<label for="name">Name</label><br>
<input id="name" type="text" placeholder="Your name"><br><br>
<label for="email">Email</label><br>
<input id="email" type="email"><br><br>
<button type="submit">Send</button>
</form>Exercise
Make the input accept an email address.
<input type="">
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.