Sub topic 1
Start with information architecture and user tasks
Navigation is the visible part of a site's information architecture (IA). If the underlying structure is wrong, no amount of careful markup or styling will make the menu usable. This chapter shows how to derive a navigation structure from the site's content and from what visitors need to do. The later chapters turn that structure into labels, markup, mega menus, and footers.
Prerequisites
This chapter assumes you can:
- Write basic HTML and CSS, including links, lists, and the box model.
- Read short JavaScript snippets and run them with Node.js or a browser console.
- Recognize responsive design and media queries, which later chapters use.
No design tools are required. A spreadsheet or a stack of index cards is enough for the exercises.
What information architecture is
Information architecture is how a site's content is organized, grouped, and connected. It answers three questions:
- What content and functions exist?
- How do they group into categories?
- How is each category reached from other places?
Navigation is one expression of the IA. Search, breadcrumbs, related links, and the footer are others. Nothing about the IA depends on HTML. You can sketch it on paper and then implement it in any markup.
A site has two kinds of navigation goals, and they sometimes conflict:
- Visitor goals: finding a price, starting a trial, getting support, or reading documentation.
- Business goals: promoting a new product or collecting sign-ups.
A usable structure serves visitor goals first. Business goals then get a place that does not bury those tasks.
Start from tasks, not from the org chart
The most common IA mistake is mirroring how the company is organized. A visitor does not know that "Customer Success" and "Technical Services" are different departments. They know they have a problem and want help.
Start by listing the tasks real visitors come to do. Good sources are:
- Search queries on your own site.
- Support tickets and sales call notes.
- Analytics showing the most visited pages.
- Short interviews with five or so representative users.
Write each task as a verb phrase from the visitor's point of view. Then link each task to the content that supports it.
| Visitor task | Content that supports it | Frequency |
|---|---|---|
| Compare plans and costs | Pricing page, plan comparison table | High |
| Understand what the product does | Product overview, feature pages | High |
| Get help with a problem | Help center, contact form, status page | High |
| Check security and compliance | Security page, privacy policy | Medium |
| Learn about the company | About, careers | Low |
The frequency column matters. It decides which items earn a place in the primary navigation, which can sit in a submenu, and which belong in the footer. Frequent, high-value tasks get the most prominent positions. Rare or administrative ones go lower.
Take a content inventory
Before grouping anything, list every page or function the site has or will have. A spreadsheet with these columns works well:
- A working title for the page.
- Its URL.
- The task it supports, from your table.
- Its audience (new visitor, customer, or job seeker).
The inventory exposes three problems early. Some pages support no task and are candidates for removal. Some tasks have no page. Some pages overlap and should be merged. You will also find content that fits in two places, which you need to decide on deliberately.
Group the content
Group items by how visitors think about them. Two quick methods help:
- Open card sort. Write each page title on a card and ask five to ten people to sort the cards into piles and name each pile. Their pile names are good candidates for labels, which the next chapter covers.
- Tree test. Give people your draft structure as a plain text outline and ask them to find the item for a given task. If most people take a wrong first click, that branch needs rework.
Aim for these properties as you group:
- Mutually distinct categories. If visitors cannot predict which of two categories holds an item, merge them or redraw the boundary.
- Balanced breadth and depth. Few top-level items with many levels forces extra clicks. Many top-level items with no levels forces scanning. Most sites settle on roughly 4 to 7 top-level items and no more than two levels in the menu.
- One home per item. An item can be reachable from several places through links, but its canonical place in the menu should be single and predictable.
Derive the structure
Combine the task table and the groups into a hierarchy. Each top-level item should map to one or more high-frequency tasks. Low-frequency items move to the footer.
For the example site, the result might be this outline:
- Products (Overview, Security, Integrations)
- Pricing
- Support (Help center, Contact us)
- Company (About, Careers)
Legal pages, social links, and the sitemap do not appear here. They are rare tasks and live in the footer.
Check the outline with a script
An outline kept as data is easy to check. This Node.js script flags two common problems: too many top-level items, and the same label used in two places.
const structure = {
Products: ["Overview", "Security", "Integrations"],
Pricing: [],
Support: ["Help center", "Contact us"],
Company: ["About", "Careers"],
};
const topLevel = Object.keys(structure);
console.log(`Top-level items: ${topLevel.length}`);
if (topLevel.length > 7) {
console.warn("More than 7 top-level items. Consider regrouping.");
}
const seen = new Map();
for (const parent of topLevel) {
seen.set(parent.toLowerCase(), "top level");
}
for (const [parent, children] of Object.entries(structure)) {
for (const child of children) {
const key = child.toLowerCase();
if (seen.has(key)) {
console.warn(`"${child}" under ${parent} duplicates an entry in ${seen.get(key)}.`);
} else {
seen.set(key, parent);
}
}
}Run it with node check-structure.js. For the structure above it prints Top-level items: 4 and no warnings. If you add Security as a child of Company, it warns that the label is already used under Products. That is a prompt to decide where the item really belongs.
The same data can later drive the markup, so the outline and the HTML do not drift apart.
Common errors
- Organizing by department. Names like "Solutions Group" mean nothing to visitors. Use task or topic language.
- Putting everything in the menu. A menu that mirrors the whole inventory is a sitemap, not a navigation. Prioritize by frequency.
- Skipping validation. An outline that makes sense to its authors often fails with outsiders. Even a five-person tree test catches most structural problems.
- Hiding key tasks. If the pricing page is two levels deep, many visitors will not find it.
- Designing for the first release only. Leave room to grow. If the menu is already at seven items, the next section has nowhere to go.
Exercise
Exercise
A software company's draft navigation has the top-level items "Solutions", "Offerings", "Resources", "Customer Success", "Company", "Partners", "Investors", and "Legal". Using the approach in this chapter, name two problems with this list and describe how you would fix each.
Show answer
First, there are eight top-level items, and several (Investors, Legal, Partners) are rare tasks for most visitors. Move them to the footer, which brings the primary navigation within the 4 to 7 range. Second, "Solutions" and "Offerings" overlap, so visitors cannot predict which holds a given item, and "Customer Success" is an internal department name rather than a visitor task. Merge "Solutions" and "Offerings" into one category such as "Products", and replace "Customer Success" with a task-based label such as "Support". Then run a tree test on the revised outline to confirm that visitors find items on the first click.