Web Design for Developers / Module 11

Module 11: Usability: Conventions, Navigation and Quick Tests

Review a site against Nielsen's heuristics, fix its navigation's labels, groups and current page, and run a five-person usability test on your own.

This is the top of Stashling’s landing page as Module 10 left it, 1280 pixels wide in the light theme. Somewhere on it there’s a way to the settings page.

Figure 1: the landing page at 1280 pixels. Five links have words; the only way to the settings page has none.

A reader would say they can’t find where to change their account. The five words in the bar name pages about the product, and the gear at the far right has to be guessed. But the page works, and every link goes where it should.

This module is about usability, meaning whether people can find and do what they came for. It covers the conventions people bring from other sites and Jakob Nielsen’s ten heuristics. You’ll review the sample site against three of them, and separate a site’s structure from its navigation. Then come quick tests that need no research budget: a tree test, a first-click test and a five-person usability test. Session recordings close the module, with their cost to the visitor.

After this module, you can:

  • explain why people expect the patterns they know from other sites, and decide when a new pattern is worth what it costs them to learn
  • review a page against three of Nielsen’s heuristics, rate each finding’s severity, and say how much one reviewer misses
  • separate a site’s structure from its navigation, and fix a nav’s labels, groups and current-page mark in HTML and CSS
  • plan a five-person usability test, run it on your own, and say what five people can and can’t show you
  • choose between a tree test, a first-click test and a session recording for a question, and name what each one costs, including a recording’s cost to privacy

To follow along, start from the module-10 folder of the course repository, github.com/vespaiach/web-design-course. Open index.html in Chrome at 1280 pixels wide.

A settings page that only one icon leads to

Pause and predict: look at Figure 1. Where would you click to change the email address on your Stashling account? Then guess what a screen reader announces for that link.

Answer

The gear at the far right. Nothing on the page says so, and there’s no visible word to match “email” or “account”. The only other way is a link to the “settings page” in the blog article, under “Files are split into chunks”.

A screen reader announces “Settings”, because the link has aria-label="Settings". We checked Chrome 157’s accessibility tree, and the name was there all along. So only people who look at the page miss it.

The settings page itself is fine. The problem is how people get to it, and whether the header tells them where they are once they arrive.

Why people look where other sites taught them

Jakob Nielsen wrote in 2000 that “users spend most of their time on other sites” (Nielsen, NN/g, 2000). Jakob’s Law is that observation and its consequence, that people expect your site to work like the sites they already know. Laws of UX words it the same way (Yablonski, Laws of UX).

It isn’t a law in the scientific sense, because nobody measured it and none of its sources reports a study. So treat it as an argument for conventions, the patterns that many sites share.

NN/g gives the reason underneath (Budiu, NN/g, 2016). The power law of practice says that the time a task takes falls with each repetition, fast at first and then slowly, along a power curve. So a pattern people have used on many sites is already far along that curve, and a new pattern starts them at the steep beginning again.

The same article gives three questions to ask before you break a convention:

  1. Will the new pattern be much better once people have learned it?
  2. Will people keep using it long enough to learn it?
  3. Can you make the learning faster?

It adds that a new pattern is easier to justify when people use the product often, when they have no choice, or when the brand is strong. But a small open-source tool’s website is used now and then, by people who can leave. So for Stashling, the answer to the first two questions is no.

The gear may be a convention for settings in many products. But we have no study that measures how many people read it that way, and Module 8 showed that an icon without a word makes people guess. A word next to the gear removes the guess, whatever the share.

Rule: Use the pattern people practiced on other sites, unless the new one is much better after learning and people will stay long enough to learn it.

Ten heuristics, and three for a small site

A usability heuristic is a broad rule of thumb for interface design, used to spot problems, not a precise test with a pass mark. Nielsen’s ten are the set most cited (Nielsen, NN/g, 1994, last reviewed 2024):

# Heuristic, as NN/g words it today In Nielsen and Molich’s 1990 list (our mapping)
1 Visibility of System Status Provide feedback
2 Match Between the System and the Real World Speak the user’s language
3 User Control and Freedom Provide clearly marked exits
4 Consistency and Standards Be consistent
5 Error Prevention Prevent errors
6 Recognition Rather than Recall Minimize user memory load
7 Flexibility and Efficiency of Use Provide shortcuts
8 Aesthetic and Minimalist Design Simple and natural dialogue
9 Help Users Recognize, Diagnose, and Recover from Errors Good error messages
10 Help and Documentation (none: new in 1994)

Many blog posts say the first list, in 1990, had ten. But the 1990 paper by Nielsen and Rolf Molich lists nine (Nielsen and Molich, CHI 1990). The NN/g page says the set was refined in 1994 from a factor analysis of 249 usability problems; we didn’t open that 1994 paper. The right-hand column is our own reading, and neither source states it.

In 2020, NN/g updated the article with more explanation and examples and “slightly refined the language”. But the page says the ten heuristics themselves haven’t changed since 1994. It also shows “Last reviewed” 30 January 2024, without saying what changed then.

No source ranks the heuristics for a small site. NN/g presents all ten as equal, so any choice of three is a judgment. We chose these three from this module’s problem, people who can’t find the settings page:

  • 4, Consistency and Standards. It covers consistency inside the site and with the conventions of other sites and the platform. That’s Jakob’s Law as a heuristic.
  • 6, Recognition Rather than Recall. Options people can see beat options they must remember, such as what an unlabeled icon means.
  • 1, Visibility of System Status. The page should tell people where they are, such as which page of the nav they’re on.

Two others would be good choices on another site. Heuristic 8 is about the visual noise that Modules 1 and 2 removed, and heuristic 9 is the error messages of Module 10.

Rule: Pick the heuristics that match the problem you’re chasing, and say that the choice is yours.

One reviewer finds a fifth to a half of the problems

A heuristic evaluation is a review in which people inspect an interface against a list of heuristics and write down each place where it breaks one. No users take part. Nielsen and Molich introduced the method in 1990 and tested it in four experiments:

Experiment Evaluators Known problems Share found by one evaluator, on average
Teledata (screenshots) 37 students 52 51%
Mantel (a written spec) 77 professionals, in a magazine contest 30 38%
Savings (a live voice system) 34 students 48 26%
Transport (a live voice system) 34 students 34 20%

The authors’ own summary is that single evaluators “were mostly quite bad” at it. So they combined the findings of random groups of evaluators and counted the share of known problems the group found together. Figure 2 shows their Table 4.

Figure 2: the share of known problems found by groups of 1 to 10 evaluators, from Nielsen and Molich (1990), Table 4. Each added reviewer finds less that is new.

From this data, the authors recommend three to five evaluators who each review alone and compare notes only after each has written a report, and returns fall off around ten. They list the method’s costs too. It points at problems without saying how to fix them, and it reflects the evaluators’ own way of thinking, so they advise against using it alone. They tested only small interfaces, with students and contest entrants, not usability experts.

NN/g’s current guide keeps the same shape (NN/g, 2023). Each evaluator spends one to two hours and goes through the interface twice: once to learn the flow, once to log each violation. Then the group merges the findings and discusses how bad each one is. The guide notes that “a violation isn’t always a problem”, and that the method can’t replace research with users.

How bad is each finding

A severity rating is a score that says how much a usability problem needs fixing. Nielsen’s scale has five steps (Nielsen, NN/g, 1994):

Rating Name
0 Not a usability problem
1 Cosmetic problem
2 Minor problem
3 Major problem
4 Usability catastrophe

The rating combines three things: how often the problem occurs, how hard it is to get past, and whether it bothers people every time. Nielsen rates the problem’s effect on the market separately. So a problem that stops one rare task and a problem that slows every visit can both earn a 3.

You’ll most likely review your own site alone. By the 1990 numbers, one reviewer finds about a fifth to a half of the known problems, and you also know the site too well. So a solo review is a first pass, and the severity ratings are one person’s opinion.

Rule: Treat a review by one person as a first pass, and get two to four more people to review alone before you trust the list.

A review of Stashling’s four pages

We reviewed the four pages at 1280 and 390 pixels against heuristics 4, 6 and 1. The severity numbers are our ratings, and another reviewer would rate some of them differently.

# Page Heuristic Finding Severity
1 All 6 The only way to Settings is a gear with no word. People must recall what it means. 3
2 All 4 One row mixes pages about Stashling (Home, Features, Blog, Download) with a page about your account (Sign up). The other account page, Settings, sits alone at the far end. 2
3 All 1 Nothing in the header shows which page you are on. The title and the h1 do. 2
4 All, below 576 px 4 The open menu does not close on Esc, but the browser’s own popovers and dialogs do. 2
5 All, below 576 px 6 Five links are behind the Menu button. 1
6 Settings, at 390 px 6 The snapshot table scrolls the Snapshot column out of view, so people must remember which row they are on. 2
7 All 4 “Blog” leads to one article, not a list of posts. 1
8 Sign up 4 Errors show twice, in the browser’s bubble and in the page’s own message. 1
9 Settings 1 An empty snapshot table still says “Select a snapshot to restore its files” above a disabled button. 1

The lab fixes findings 1 to 4, which are about the header. Finding 5 is a trade-off that the section “A menu that closes the way other menus do” explains. Findings 6 to 9 stay open. They need a frozen table column, a blog index page, a script for the errors, and one more CSS rule for the empty table.

A word next to the gear

Finding 1 breaks heuristic 6. A gear asks people to recall what it stands for, and the word “Settings” lets them recognize it. So the fix is to show the word that the code already had in aria-label:

<!-- excerpt from settings.html: the svg's paths are left out -->
<a class="settings-link" href="settings.html">
  <svg width="24" height="24" viewBox="0 0 24 24" ... aria-hidden="true">...</svg>
  Settings
</a>

The title and aria-label go, because the visible word now names the link. Chrome 157’s accessibility tree gives “Settings” before and after the change, so screen reader users hear nothing new.

The link becomes a flex row with the icon and the word, and keeps the 44 px height that Module 9 gave it:

/* excerpt from base.css */
/* The gear and its word in one link, 44px tall like the Menu button */
.settings-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--target-min);
}

The word costs width, and the link grows from 44 to 101.3 px at 1280. Module 9 turned the nav into a menu below 36rem, because the nav needed 560 px. But with the word, we measured that the header wraps onto a second line between 576 and 607 px, and fits from 608 px.

So both media queries move to 39rem (624 px with a 16 px default font). Module 7 chose breakpoints by the content, and this one follows the same rule.

/* excerpt from base.css */
/* Below 39rem the header does not fit on one line (it needs 608px), so the nav becomes a menu */
@media (width < 39rem) {

Pause and predict: on a phone at 390 pixels, the nav is a menu. Will the word “Settings” fit in the bar next to the logo and the Menu button?

Figure 3: the gear with its word at 1280 pixels. Nothing else in the bar moves.

Figure 4: the same change at 390 pixels. The word fits in the bar, so Settings stays visible on a phone.

Answer

It fits. At 390 the link is 94.2 px wide and ends at the 16 px page margin. At 320 the three items need 290.5 px of a 288 px content box, so the right margin shrinks to 13.5 px, but nothing scrolls.

Group the links by what the visitor came to do

Finding 2 is about structure, not about one link. Information architecture is how a site’s content is organized and named: what pages exist, how they are grouped, and what each group is called. Navigation is the visible part on top of it, such as the nav bar, a menu, breadcrumbs or the footer links (Cardello, NN/g, 2014).

Cardello’s point is that you choose the structure first. If you choose a nav by its looks, it may not hold the content.

Stashling’s content falls into two groups. Home, Features, Blog and Download are about the product, for anyone who visits, but Sign up and Settings are about the visitor’s own account. Utility navigation is the set of links for the visitor’s own account and tools, kept apart from the links to the site’s content. Stashling’s header has the second group’s links, but not as a group.

A real Stashling would show Sign up to visitors and Settings to people who are signed in. But the sample site has no sign-in, so it shows both, and the lab treats them as one group.

On a wide screen, Module 1’s proximity rule draws the group. So Sign up moves to the right end of the bar, next to Settings. The HTML gets one class, and the nav fills the bar so that the class can push Sign up to its end:

<!-- excerpt from index.html -->
<a class="nav-account" href="signup.html">Sign up</a>
/* excerpt from base.css */
@media (width >= 39rem) {
  .menu-button {
    display: none;
  }

  /* The nav fills the bar, so Sign up can start the account links at its right end, next to Settings */
  .site-header nav {
    flex: 1;
  }

  .nav-account {
    margin-inline-start: auto;
  }
}

margin-inline-start is a logical property, Baseline widely available since 2024-03-20 in the web-features data. The rule sits inside the wide-screen media query, so on a phone Sign up stays the last link in the menu.

Pause and predict: after this change, how far is Sign up from Download, and how far from Settings?

Figure 5: two groups of links at 1280 pixels. Pages about Stashling start at the logo; the account links sit together at the right.

Answer

Sign up is 15 px from Settings, the header’s gap, and 551 px from Download at 1280. So the space between groups is now far larger than the space inside them.

The grouping has two limits. It exists only on wide screens; in the phone menu, Sign up is the last of five links with nothing to set it apart. And it’s only visual, because Settings is outside the <nav> element, as before, so a screen reader’s list of landmarks doesn’t show the two links as one group.

Rule: Sort the links by what the visitor came to do before you style them, and give each group its own place.

Show people where they are

Finding 3 breaks heuristic 1. On settings.html, the header looks the same as on every other page. The browser tab and the page’s h1 say “Settings”, but the nav, where people look to move on, doesn’t.

The fix has two parts. The attribute aria-current="page" marks the link to the page itself, for assistive technology (WAI-ARIA 1.2, aria-current). The same attribute is a CSS selector, so the visible mark and the coded mark can’t disagree:

<!-- excerpt from settings.html -->
<a class="settings-link" href="settings.html" aria-current="page">
/* excerpt from base.css */
/* The current page: a thick line under its link, so the header says where you are */
.site-header a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

Each page marks its own link: Home on index.html, Blog on article.html, Sign up on signup.html and Settings on settings.html. The rule comes after .site-header a:hover because both selectors have the same specificity, so the later one wins and the hover’s text-decoration: underline can’t reset the thickness. text-decoration-thickness and text-underline-offset are the properties Module 9 used for links.

The line is in the bar’s own text color: 15.91:1 on the bar in the light theme and 10.31:1 in the dark theme, from color-calc/m11/contrast.mjs. Its cost is that a header link also underlines on hover, with a thinner line. The two differ in thickness only, but the hover line goes away when the pointer leaves.

Pause and predict: on article.html at 390 pixels, with the menu open, which link will carry the line?

Figure 6: the settings page at 1280 pixels. The header now says which page you are on.

Figure 7: the open menu on the blog article at 390 pixels. Blog carries the line, inside the menu as in the bar.

Answer

Blog, because article.html puts aria-current="page" on that link. The rule applies wherever the link is, so the line shows in the menu too.

A menu that closes the way other menus do

Module 9 put the nav behind a Menu button on narrow screens. But that choice has a measured cost. In a 2016 NN/g study with 179 participants on six live sites, people used hidden navigation far less than visible navigation (Pernice and Budiu, NN/g, 2016):

Device Navigation hidden Visible Combo: some links visible, the rest in a menu
Desktop 27% used it 48% 50%
Phone 57% not tested 86%

Hidden navigation was also more than 20% less discoverable on both devices. On desktop, tasks took at least 39% longer with it. On phones, tasks took 15% longer than with the combo design.

NN/g’s advice from that study is to show the navigation on desktop. On a phone, show it if there are four or fewer top-level links; with more, hiding them is a reasonable trade-off if the page also links to its main sections. Stashling has six links in the bar, shows them all from 624 px, and on a phone keeps Settings visible beside the menu. That’s a combo design, which is why finding 5 gets severity 1.

A follow-up found that the best phone combo design got 89% use, and a hidden menu with little visual weight next to the logo got 44% (NN/g, 2016). Stashling’s Menu button is next to the logo too, but it has a border and the word “Menu”.

These numbers come from a study run in December 2015. NN/g reported in 2025 that most participants now read the three-line icon in the top-left as a menu. It advises a “Menu” label and other paths to the content (NN/g, 2025). But that work has no task-success data, so it doesn’t replace the 2016 numbers.

Esc, the platform’s convention

Finding 4 is about consistency with the platform, the “Standards” half of heuristic 4. Chrome’s own popover and modal <dialog> close on Esc, and we checked both in Chrome 157 with real key events. Module 9 noted the same for popover when it chose a script instead. So if you open Stashling’s menu with a keyboard and press Esc, you expect the same.

Pause and predict: in module-10, open the menu at 390 pixels, press Tab to reach Home, and press Esc. What happens?

Answer

Nothing. The menu stays open and focus stays on Home. That’s because menu.js closes the menu only when the button is pressed again or focus leaves the menu.

Seven lines at the end of menu.js add Esc:

// Esc closes the menu and puts focus back on its button, as Esc closes the browser's own popovers
document.addEventListener("keydown", (event) => {
  if (event.key === "Escape" && button.ariaExpanded === "true") {
    button.ariaExpanded = "false";
    button.focus();
  }
});

Focus goes back to the button. Without that line, focus would stay on a link that the menu hides 200 ms later, and keyboard users would lose their place. In the web-features data, event.key has been Baseline widely available since 2018-01-29. The ariaExpanded property, which menu.js has used since Module 9, became widely available on 2026-04-24.

Rule: When your component looks like one the platform has, make it close, open and take focus the way the platform’s does.

Test the structure without the design

The header now looks right to us. But the next question is whether it works for people who didn’t build it, and a few small tests answer parts of that question.

A card sort is a test in which people sort labeled cards, one per piece of content, into groups that make sense to them (Tankala and Sherwin, NN/g, 2024). In an open sort they name the groups; in a closed sort you give the groups. NN/g advises at least 15 participants for a qualitative sort, 30 to 50 for a quantitative one, and 30 to 50 cards.

The 15 comes from Tullis and Wood’s 2004 study, as NN/g reports it. Random groups of 15 people agreed with the full group of 168 at a correlation of about 0.90 (NN/g, 2004). We didn’t open that paper. A card sort shows how people group things, but it has no context, sorts on one level only, and its results are hard to read.

A tree test checks an existing structure. Participants see the site’s hierarchy as plain text, get a task, and click down the tree to where they would expect to find the answer (Laubheimer, NN/g, 2023). It measures whether they succeed, whether they went there directly, how long it took and which wrong paths they tried. NN/g calls card sorting generative and tree testing evaluative, and suggests a tree test on the structure a card sort suggests.

For a site with six pages, a card sort with 30 cards is out of proportion. But a tree test on paper takes a few minutes. Figure 8 is Stashling’s tree, built from the nav and the settings page’s sections.

Stashling
  Home
  Features
  Blog
  Download
  Sign up
  Settings
    Account
    Backup schedule
    Storage
    Snapshots
    Danger zone

Figure 8: Stashling’s structure as a tree test shows it, as text only. The gear doesn’t exist here.

Write tasks that describe a goal without the tree’s words. “Go to Settings and change the schedule” tells people where to click, so it tests reading. NN/g warns that task wording can prime participants (Moran, NN/g, 2019). Three tasks for Stashling:

  1. “Your backups run every night. Make them run once a week instead.” (Settings, then Backup schedule)
  2. “Your laptop broke last week. Find where you would get back a file from last Tuesday.” (Settings, then Snapshots)
  3. “Find out whether Stashling can save copies to the network drive in your home.” (Features)

Pause and predict: would this tree test have found finding 1, the gear without a word?

Answer

No. In the text tree, the link is the word “Settings”, so people would find it. A tree test checks names and grouping, not the icons, colors or layout of the real page. So the gear’s problem shows only on the page itself.

The first click predicts the rest

A first-click test shows people a page or a picture of one, gives them a task, and records only where they click first. It tests the real design, so it would catch the gear.

The reason to test only the first click comes from a 2009 paper by Bailey, Wolfson, Nall and Koyani, from usability tests on several websites (Bailey and others, HCII 2009). When a participant’s first click was correct, the chance of completing the task was 0.87. When it was wrong, it was 0.46. So people with a correct first click were about twice as likely to succeed.

The paper reports that one hour can hold over 100 first-click tasks, against 10 to 15 full tasks. It needs only a home page or landing pages, so it works on a sketch. It suggests pairing each click with a question about how confident the person is that the page they chose holds the answer.

The evidence has limits. It’s one team’s data, and the paper doesn’t say how many tests, sites or people the 0.87 and 0.46 come from. The data are correlational, so a wrong first click predicts failure without showing that the click causes it. Some blog posts repeat the numbers with details the paper doesn’t contain, so cite the paper.

Five users, and what that number does and does not promise

The most quoted number in usability testing is five. Nielsen wrote in 2000 that five users find about 85% of the usability problems in a design (Nielsen, NN/g, 2000). The number comes from a model by Nielsen and Landauer (1993):

problems found = N × (1 − (1 − L)^n)

N  the number of problems in the design
L  the share of problems one user finds: 31%, the average across their projects
n  the number of users

We couldn’t open the 1993 paper; the formula and L = 31% are as NN/g’s article states them. With n = 5, 1 − 0.69^5 is 0.844, so 84%, which the article rounds to “about 85%”. color-calc/m11/five-users.mjs prints the model’s values for 1 to 20 users, and svgs.mjs draws the curve in Figure 9 from the same formula.

Pause and predict: if you ran many separate tests with five people each, would each one find about 85%?

Figure 9: the five-user model against a real test of 60 people. The average agrees; a single set of five can find far less.

Answer

No. Faulkner tested 60 users, then drew 100 random sets of each size from them (Faulkner, 2003). Sets of five found 85.55% of the problems on average, as the model says. But the worst set of five found 55%, and the results spread with a standard deviation of 9.30 points.

Faulkner’s larger sets narrow the spread. Sets of 10 found 94.69% on average, with a worst set of 82%. Sets of 15 found 97.05% (worst 90%), and sets of 20 found 98.4% (worst 95%). Her study supports Nielsen’s average, but it doesn’t support treating five as enough for any single test. Her own answer to “how many users” is “it depends”, on the people and on the cost of a missed problem.

Other critics go further. Spool and Schroeder (2001) found that the first five users on large websites found only 35% of the problems, as Faulkner cites them; we didn’t read that paper. Schmettow (2012) argues that the formula itself underestimates the users needed, because some problems are much harder to find than others (Schmettow, CACM 2012). We read only the first page of his article.

The reason under the critiques is one assumption. The formula gives every problem the same chance L of being found, and treats users as alike. So a rare problem, or people with different goals, break that.

The two sides partly answer different questions. Nielsen’s own article advises spending a budget of 15 users on three rounds of five, with a redesign between rounds, so each round looks at a better design. With two distinct user groups, he advises three or four people from each, and at least three per group for three or more groups. NN/g’s 2012 update keeps five for qualitative tests and asks for at least 20 for numbers you want to compare (Nielsen, NN/g, 2012).

Rule: Run five people per round to find problems, run several rounds with fixes between them, and never read one round of five as proof that few problems remain.

Running a five-person test on your own

A usability test has three parts: a moderator who runs it, tasks, and a participant (Moran, NN/g, 2019). A think-aloud test is a usability test in which the participant does real tasks and says what they think while working. The moderator stays quiet and watches (Nielsen, NN/g, 2012). NN/g’s “discount usability” view is that a cheap test still pays, in Nielsen’s words: “Bad user testing beats no user testing” (Nielsen, NN/g, 2009).

NN/g puts a simple study at a few hundred dollars in thanks for participants and about three days of work. For Stashling’s header, one round looks like this:

  1. Recruit five people who back up their files, or would like to. People who built the site, or who know it, aren’t representative.
  2. Ask each person for consent to record the screen and their voice. You’re the only note-taker, so the recording is your second pair of eyes.
  3. Say that you’re testing the site, not them, and ask them to say what they think as they go.
  4. Give one task at a time, on paper, worded like the tree test tasks above. Add one task that starts on the landing page: “You want to change the email address on your account.”
  5. Stay quiet while they work. Write down where they hesitate, where they click first and what they say.
  6. After the session, write each problem with what the person did and said, before you rate it.
  7. After five sessions, fix the worst problems, and plan the next round.

A sheet like this keeps the notes comparable. The rows are a made-up example to show the format, not results from a real test:

Person Task First click Done? What they said
P1 (made-up example) Change your email Sign up Yes, after 40 s “I thought my account would be under Sign up.”
P2 (made-up example) Back up weekly Settings Yes (nothing)

Thinking aloud has costs that NN/g lists. Talking while working isn’t natural, people filter what they say, the moderator can bias them, and five people give no statistics.

Running it alone adds three more. Nobody takes notes while you watch, so you need the recording. You’re testing your own design, so you’ll want to explain it. And friends and colleagues are easy to recruit but rarely represent the people who will use the site.

Session recordings, and what they cost the visitor

A session recording, also called session replay, is a script on a live site that records what each visitor does. It sends the record to a service that plays it back like a video. It shows real visitors on the real site, which no lab test does. But it also sees everything they do.

Researchers at Princeton studied these scripts in 2017 (Englehardt, Acar and Narayanan, Princeton CITP, 2017). The scripts recorded keystrokes, mouse movement, scrolling and page content, and ran on at least 482 of the 50,000 most visited sites. The recordings they studied included card numbers with their security codes, prescription details tied to a name, and a password the person never submitted.

No service they tested hid page content by default, and hiding fields by hand had to be redone whenever the site changed. But that was 2017, and vendors’ defaults may have changed since. Microsoft Clarity, for example, now always masks inputs (Microsoft Learn, Clarity masking).

The law is moving toward consent. On 8 October 2026, France’s data protection authority, the CNIL, adopted a recommendation on session replay (CNIL, 2026, in French). It says session replay needs the visitor’s consent before it starts, because recording isn’t needed to deliver the service. It also asks for:

  • a short, specific mention of session replay on the first screen of the consent banner
  • everything hidden by default when the tool isn’t configured
  • a less intrusive tool when one meets the same goal, and no use for advertising
  • recordings kept a few months for finding errors and improving the site, and a few hours after the session for customer support

It’s one regulator’s recommendation, a reading of French and EU law that doesn’t bind other countries. Other regulators may word it differently.

Tools are adding consent controls. Since 31 October 2025, Clarity enforces a consent signal for visits from the European Economic Area, the UK and Switzerland (Microsoft Learn, Clarity consent mode). In consent mode, it sets no cookies until the visitor agrees, but the same page tells you to check that Clarity still sends its /collect calls after a visitor declines. So no cookies doesn’t mean no recording, and the CNIL’s text treats the recording itself as what needs consent.

If you add a recording script, treat it as you would analytics. Load it only after the visitor agrees, name it on your privacy page, hide every field by default, and delete recordings on a schedule. A moderated test with five people asks for consent once, face to face, and records only people who said yes.

Usability: choices and costs

Decision Choice in the lab Cost or limit Choose something else when
The way to Settings The gear and the word “Settings” A wider header; the menu starts below 624 px, not 576 px A tool panel people use every day: an icon alone can be learned (the power law of practice), with the word in a tooltip
Account links Grouped by space on wide screens Not a group on a phone or for a screen reader The site has sign-in: show Sign up or Settings, not both
Current page aria-current="page" and a 3 px underline Hover also underlines, more thinly A nav of tabs: a filled background for the current one
Phone navigation A Menu button, with Settings visible beside it Hidden links are used less (57% against 86% in 2016) Four or fewer top-level links: show them all (NN/g)
Esc Closes the menu and returns focus Seven more lines of script A popover, which closes on Esc without a script (newly available, see Module 9)
Review One reviewer, three heuristics Finds about 20% to 51% of known problems A larger product: three to five reviewers, alone, with all ten heuristics
Test size Five people per round, several rounds One round can miss nearly half of the problems Numbers to compare: at least 20 (NN/g); card sorting: 15
Structure test A tree test on paper No visual design, so no icon problems A first-click test on the real page
Recording None in the lab Consent, masking, a privacy page entry, stored data You cannot meet your users, and they agree to be recorded

What changed recently

  • In 2020, NN/g refreshed the wording, descriptions and examples of the ten heuristics; the heuristics themselves are the 1994 set. The page shows “Last reviewed” 30 January 2024 with no described change.
  • NN/g’s 2023 guide to heuristic evaluation and its 2024 article on card sorting restate the methods above.
  • NN/g’s 2025 article on the menu icon reports that most people now recognize the three-line icon in the top-left, without task-success data.
  • Since 31 October 2025, Microsoft Clarity enforces a consent signal for visits from the EEA, the UK and Switzerland.
  • On 8 October 2026, the CNIL adopted its recommendation on session replay tools.

The lab adds no new CSS feature. Baseline statuses are from the web-features data, version 3.46.0, read on 2026-11-18. Logical properties such as margin-inline-start have been widely available since 2024-03-20, and media query range syntax, used since Module 9, since 2025-09-27. KeyboardEvent.key has been widely available since 2018-01-29, and ARIA attribute reflection, which menu.js uses for ariaExpanded, since 2026-04-24.

Online tools for this step

All three were checked on 2026-11-18. This section says what each one does and what it costs, and recommends none of them.

  • Lyssna, formerly UsabilityHub. It runs unmoderated card sorts, tree tests, first-click tests, five-second tests, preference tests and surveys, with people you recruit yourself.

Limit: the free plan allows only quick studies, with one test section each, up to 15 responses from people you recruit, and three seats. The page doesn’t say over what period the 15 apply. Tests on a live website are paid, and recruiting from its panel costs money on every plan. DevTools has no equivalent, because it can’t put a task in front of other people.

  • UXtweak. It runs card sorts, tree tests, first-click tests, five-second and preference tests, and tests of websites and prototypes, all unmoderated.

Limit: the free plan allows 15 responses a month and one active study. A card sort is limited to 20 cards and 10 responses, a tree test to 2 tasks and 10 responses, and a first-click test to 1 task and 3 responses. Results stay visible for only 14 days after a study ends. DevTools has no equivalent.

  • Microsoft Clarity. It records sessions and draws heatmaps. Its page says it is free forever, with no limits on traffic. Its default mode masks numbers and email addresses, it always masks inputs and dropdowns, and the data-clarity-mask attribute masks more.

Limit: it records real visitors and sends their sessions to a third party. So it needs an entry in the consent banner and on the privacy page, as the section on recordings explains. DevTools’ Recorder panel records only your own session, not your visitors’. PostHog is another recorder, with a free tier of 5,000 recordings a month kept for one month and code you can host yourself; it has the same privacy cost.

Check yourself

Critique: a team’s backup console

A team builds the web console of a backup service. Its header has the logo, then three icons with no words at the right: a bell, a question mark and a person. The person icon opens a small menu with “Preferences”, “Payments” and “Sign out”. “Payments” opens the same page as the Billing section.

The console has eight sections: Dashboard, Jobs, Storage, Alerts, Reports, Users, Logs and Billing. On every screen width, all eight sit behind a three-line icon at the top right. Every page has the title “Console”, and the open menu marks no section as current. It closes only when you click the icon again.

Admins use the console to set up backups, and other people only read its reports. Before launch, the team asked five colleagues from their own team to try it. Nobody got stuck, so the team wrote “navigation tested, no problems found”.

Hint 1

Go through the header with heuristic 6. Which options must people remember, and which can they see?

Hint 2

Compare the labels in the two menus. Then check the menu against heuristic 4 and the browser’s own popovers.

Hint 3

How many top-level links does the console have, and on which screens are they hidden? What did the 2016 NN/g study find for desktop?

Hint 4

Who were the five people, and what does Faulkner’s worst set of five say about “no problems found”?

Answer
  1. Heuristic 6: the bell, question mark and person icons ask people to recall what they mean. Add a word to each. Severity 3 for the person icon, because Preferences and Payments are hidden behind it.
  2. Heuristic 4: “Payments” in the person menu and “Billing” in the main menu name the same page. Pick one word and use it in both places, or show the link in one place only.
  3. Hidden navigation on desktop: in NN/g’s 2016 study, people used hidden navigation 27% of the time on desktop against 48% for visible, and tasks took at least 39% longer. Show the eight sections on wide screens. On a phone, eight links are more than four, so a menu is a reasonable trade-off. Severity 3.
  4. Heuristic 1: the same title on every page and no current section in the menu. Give each page its own title and mark the current section with aria-current="page" and a visible style. Severity 2.
  5. Heuristic 4: the menu doesn’t close on Esc, unlike the browser’s own popovers and dialogs. Add Esc and return focus to the menu icon. Severity 2.
  6. The test: colleagues who know the console aren’t representative, so they recall what new people must guess. One round of five can miss nearly half of the problems (Faulkner’s worst set found 55%). Run rounds of five with real users, and test three or four from each distinct group, such as admins and people who only read reports.

Your severity numbers may differ; the reasons matter more than the numbers.

Review questions

  1. What does the power law of practice say, how does it explain Jakob’s Law, and which three questions decide whether a new pattern is worth it?
  2. One person reviewed a site against the heuristics and found eight problems. Why is that list a first pass, and what do Nielsen and Molich recommend?
  3. What is the difference between information architecture and navigation, and why wouldn’t a tree test of module-10 find the unlabeled gear?
  4. What does “five users find 85% of the problems” assume, and what did Faulkner find when she drew many sets of five from 60 users?
  5. What does a session-recording script collect, and what doesn’t a tool’s cookie consent mode prevent?
Answers
  1. The time a task takes falls with each repetition, fast at first and slowly later. A pattern people have used on many other sites is already far along that curve, so a new pattern makes them start again at the slow beginning. Break a convention only if the new pattern is much better once learned, people will use it long enough to learn it, and you can speed up the learning.
  2. In their 1990 experiments, one evaluator found 20% to 51% of the known problems on average. That’s why they recommend three to five evaluators who review alone and compare afterward.
  3. Information architecture is the structure and names of the content; navigation is the visible interface on top of it. A tree test shows the structure as text, so the gear appears as the word “Settings”.
  4. It assumes every problem has the same chance of being found (31% per user) and that users are alike. Faulkner’s sets of five found 85.55% on average, but the worst found 55%.
  5. Keystrokes, mouse movement, scrolling and the page’s content. Clarity’s consent mode stops cookies until the visitor agrees, but Clarity still sends its /collect calls after a decline, and the CNIL treats the recording itself as needing consent.

The lab: a header people can read

In about 15 minutes, you’ll review the site against three heuristics, then fix the four header findings. Start from the module-10 folder and reload after each step. The finished files are in the module-11 folder of the course repository.

Step 1: review the four pages

Why: a fix needs a finding first, and your list will differ from ours (see “One reviewer finds a fifth to a half of the problems”).

Open each of the four pages at 1280 and at 390 pixels. For heuristics 4, 6 and 1, write each place where a page breaks one, with a severity from 0 to 4. Spend no more than five minutes.

What you should see: a list you can compare with the table in “A review of Stashling’s four pages”. Note what you found that we didn’t, and the reverse.

Step 2: put a word next to the gear

Why: the gear asks people to recall what it means (see “A word next to the gear”).

In each of the four HTML files, change the gear link’s start tag to this line:

    <a class="settings-link" href="settings.html">

Then add this line after its </svg> and before its </a>:

      Settings

In base.css, replace the .settings-link rule with this one:

/* The gear and its word in one link, 44px tall like the Menu button */
.settings-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--target-min);
}

Still in base.css, replace the comment and first line of the narrow-screen media query with these two lines:

/* Below 39rem the header does not fit on one line (it needs 608px), so the nav becomes a menu */
@media (width < 39rem) {

And change @media (width >= 36rem) { to this line:

@media (width >= 39rem) {

What you should see: Figure 3 at 1280 and Figure 4 at 390. At 600 px the header is one line with a Menu button. With the old breakpoint, the word would’ve wrapped the header onto two lines from 576 to 607 px.

Step 3: group the account links

Why: Sign up sits with the pages about the product, apart from Settings (see “Group the links by what the visitor came to do”).

In each of the four HTML files, change the Sign up link to this line:

      <a class="nav-account" href="signup.html">Sign up</a>

In base.css, replace the @media (width >= 39rem) block with this one:

@media (width >= 39rem) {
  .menu-button {
    display: none;
  }

  /* The nav fills the bar, so Sign up can start the account links at its right end, next to Settings */
  .site-header nav {
    flex: 1;
  }

  .nav-account {
    margin-inline-start: auto;
  }
}

What you should see: Figure 5 at 1280. At 390 nothing changes; Sign up is still the last link in the menu.

Step 4: mark the current page

Why: the header doesn’t say which page you’re on (see “Show people where they are”).

Add aria-current="page" to one link in each file, at the end of its start tag:

File Link
index.html <a href="index.html" aria-current="page">Home</a>
article.html <a href="article.html" aria-current="page">Blog</a>
signup.html <a class="nav-account" href="signup.html" aria-current="page">Sign up</a>
settings.html <a class="settings-link" href="settings.html" aria-current="page">

In base.css, add this rule after the .site-header a:hover rule:

/* The current page: a thick line under its link, so the header says where you are */
.site-header a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

What you should see: Figure 6 on settings.html at 1280, and Figure 7 on article.html at 390 with the menu open. Hover over the current link, and the line stays 3 px.

Step 5: close the menu on Esc

Why: the browser’s own popovers and dialogs close on Esc, and Stashling’s menu doesn’t (see “Esc, the platform’s convention”).

Add the seven lines from that section at the end of menu.js.

What you should see: at 390, open the menu, press Tab to reach Home, and press Esc. The menu closes and the focus ring is on the Menu button.

Step 6: check both themes and both widths

Why: every change in this module is in the shared header, so it shows on four pages, in two themes, at every width.

Look at all four pages at 320, 390 and 1280 pixels, in the light and the dark theme. On article.html at 390 in the dark theme, open the menu.

What you should see: at 320, document.documentElement.scrollWidth is still 320 on all four pages, and the header is one 64 px row. The open menu looks like Figure 10.

Figure 10: after the lab, in the dark theme at 390 pixels. Settings is visible beside the menu, and the menu marks the current page.

Optional: review and test a site of your own

Pick a site or app you work on.

  1. Review its main pages against heuristics 4, 6 and 1, alone, and rate each finding from 0 to 4. Then ask two colleagues to do the same without seeing your list, and merge the three lists.
  2. Write its navigation as a text tree, and three tasks that don’t use the tree’s words. Run the tree test on paper with three people.
  3. Plan one round of a five-person think-aloud test: who you will recruit, the consent you will ask for, the tasks, and the sheet for your notes.
  4. If the site uses a session-recording script, check when it starts, what it hides by default, and whether your privacy page names it.

Module 11 cheat sheet

Conventions  people practice patterns on other sites; break one only if it
             is much better after learning and people stay to learn it
Labels       an icon plus its word for any page people must find
Structure    group links by what the visitor came to do; account links apart
Current      aria-current="page" on the link, and a visible mark from it
Menus        close on Esc and return focus, as the platform's own do
Review       3 heuristics, alone, severity 0-4: a first pass (20-51%)
Test         5 people per round, several rounds; colleagues are not users
Recordings   consent first, everything masked, named on the privacy page

Module 12, Capstone: A Design Process and a Small Design System, puts Modules 1 to 11 together on a page the sample site doesn’t have yet.

Sources

Heuristics and their evaluation:

Conventions:

Information architecture and navigation:

Quick tests:

How many users, with the strength of the evidence:

Session recording:

Browsers:

  • The web-features data, version 3.46.0, for every Baseline status in this module.

The header widths, the breakpoint, the Esc behavior and the accessible names come from headless Chrome 157 on macOS, at a 16 px default font size. The scripts are measure.mjs, minwidth.mjs, esc.mjs and ax.mjs in color-calc/m11/. The five-user curve comes from color-calc/m11/five-users.mjs. Your numbers will differ with other browsers and settings.