An accessible form
Every input has a label, the right type and basic validation.
HTML · An accessible formIntermediate
<form action="save.php" method="post">
<label for="name">Full name</label>
<input id="name" name="name" type="text" required autocomplete="name">
<label for="email">Email</label>
<input id="email" name="email" type="email" required autocomplete="email">
<label for="msg">Message</label>
<textarea id="msg" name="msg" rows="4" required></textarea>
<button type="submit">Send</button>
</form>formsaccessibilityhtml5