Sub topic 2
Preventing Errors, Recognition, Flexibility, and Minimalism
This chapter assumes you know the first four heuristics, can read basic HTML, and have used a web form. Covers heuristics 5 through 8 from Jakob Nielsen's list.
5. Error prevention
Error prevention means designing the interface so users cannot easily make a mistake in the first place. It works better than a good error message, because a user who never makes the error never has to recover from it.
Three common techniques:
- Use input types that match the data, so the browser can reject bad values early.
- Mark required fields clearly.
- Disable or hide actions that are not valid in the current state.
<label for="email">Email address</label>
<input id="email" name="email" type="email" required autocomplete="email">The type="email" attribute lets the browser check the format before the form is submitted.
6. Recognition rather than recall
Recognition means the user sees options and picks one. Recall means the user must remember the option from memory. Interfaces should show choices, labels, and recent items so users do not have to memorize them.
A dropdown of previously used cities is easier than a blank box that expects the city name from memory.
7. Flexibility and efficiency of use
Novices need step-by-step paths. Experienced users need shortcuts. Good designs support both, for example through keyboard shortcuts, saved searches, or the ability to repeat a recent action.
8. Aesthetic and minimalist design
Every extra element competes with the content users need. Remove text, options, and decoration that do not help the user finish the task. Irrelevant information dilutes the important parts.
Exercise
A checkout form accepts a credit card number with no format check, and the error appears only after payment fails. Which heuristic does this violate, and what single change prevents the problem?
Show answer
It violates error prevention. Validate the card number format on the client before submission, and disable the pay button until the required fields are valid.