Navigation and search
Use links for destinations, show the current location, preserve browser history, and keep search scope clear.
What the guidance says
- Use tabs for a small set of peer destinations and sidebars for broader, more adaptable hierarchies.
- Keep navigation available and predictable as the layout changes.
- Show the current destination clearly and preserve state when people move between destinations.
- Place search close to the content it searches and make its scope clear.
How to apply it on the web
- Use links for navigation and buttons for actions so browser and assistive technology behavior stays correct.
- Expose the active destination with text, shape, and
aria-current. - Collapse navigation according to available space while keeping every destination reachable.
- Give search a persistent label, a clear control, useful empty states, and predictable keyboard behavior.
What to check
- Can people identify where they are and how to return?
- Do browser history, direct URLs, and refresh preserve the expected destination?
- Can every navigation item and search result be reached by keyboard?
- Does compact navigation retain the same destinations and meaning?