The foundations of Form UX
Do we really need all this?
(Reduce cognitive load)
<form>
<fieldset>
<legend>Personal information</legend>
<label>
First Name<br>
<input name="fname">
</label>
<label>
Last Name<br>
<input name="lname">
</label>
<label>
Email<br>
<input name="email" type="email">
</label>
</fieldset>
</form>
avoid this ->
Placeholders as labels
It's difficult to remember what information belongs in a field, and to check for and fix errors
— nngroup
input[type="text"]:user-valid {
color: green;
}
input[type="text"]:user-invalid {
color: red;
}
øvelse
Lav HTML-formularen, der gør os i stand til at vise følgende data i et UI Card som dette
You Might Not Need A Label
province + country
farm size
name
d.o.b.
members
province + country
farm size
name
d.o.b.
members