Sub topic 1
What Usability Heuristics Are
Prerequisites
This chapter assumes you have:
- Used websites and apps regularly.
- A basic idea of what a user interface (UI) is: the buttons, forms, menus, and messages a person sees and touches.
- Optional: basic HTML for the code example.
What usability heuristics are
A usability heuristic is a broad rule of thumb for judging whether an interface is easy to use. Jakob Nielsen published ten of them in the 1990s. They are general principles, not exact specifications, so you apply them by judgment. Designers and reviewers use them to find problems before users do.
1. Visibility of system status
The system should always tell the user what is happening. A progress bar, a loading spinner, or a "Saved" message keeps the user informed.
<label for="upload">Uploading report.pdf</label>
<progress id="upload" value="62" max="100">62%</progress>This markup names the file and shows 62 percent progress, so the user knows the upload is running and roughly how long it will take.
2. Match between system and the real world
The interface should use words, icons, and order that people already know from everyday life. A trash icon for delete and a shopping cart for checkout work because users recognize them. Labels such as "Sign-in" are clearer than internal jargon such as "Auth module."
3. User control and freedom
Users make mistakes, so they need a clear exit. Undo, cancel, and back actions let users recover without losing work. A confirmation dialog or a short undo window is often enough for destructive actions.
> Note: an undo option is usually better than a confirmation prompt for routine actions, because it does not interrupt the user.
4. Consistency and standards
Similar things should look and behave the same way across the product. A link should look like a link everywhere. Platform conventions, such as Ctrl+S for save, should also work as expected.
Exercise
An app shows a spinner while it saves a document, then shows nothing when it finishes. Which heuristic does this violate, and what change would fix it?
Show answer
It violates visibility of system status. Show a short "Saved" message when the save completes so the user knows the action succeeded.