Why this wireframe works | Search with suggestions
Open the page without finishing the word
Matching pages appear as suggestions while typing, and the chosen one opens directly. This saves typing long words and reduces misspellings.
Matched text and kind make suggestions easy to tell apart
The part matching the typed text is bold, and each suggestion carries its kind, such as Page or FAQ. Even with similar titles, it is easy to judge which to open.
Suggestions can be chosen by keyboard
The input is a role=”combobox” and the list a role=”listbox”, so ↑↓ chooses a suggestion and Enter opens it. The chosen suggestion is conveyed with aria-activedescendant, and the number of suggestions is announced.
A full search is still available when nothing matches
When nothing matches, the list says so and Enter runs a full search, so the search does not stop at the lack of suggestions.
Common mistakes | Search with suggestions
Focus leaving the input when suggestions appear
If focus moves to the list when suggestions appear, typing cannot continue. Keep focus in the input and convey the chosen suggestion with aria-activedescendant only.
No way to close the suggestions
If the list keeps covering the buttons and links beneath the input, readers are stuck. Close it on Esc and on clicking outside the input.
Too many suggestions
Ten or twenty suggestions take time to choose from. Keep to a small number (five to eight as a guide) and leave the rest to the full search.
A request on every keystroke
Sending a request on every keystroke delays the suggestions. Wait briefly after typing stops before showing them, and tune the interval.
Stale responses overwriting newer input
When suggestions are fetched on every keystroke, responses can arrive out of order and show old suggestions. Show only the response that matches the latest input, and cancel or discard older requests. Keep the result count, aria-activedescendant and aria-expanded in sync with the latest state.
FAQ | Search with suggestions
After how many characters should suggestions appear?
In English, two or three characters usually narrow the list enough; one character often matches too much. If there are still too many, start from three.
Should a chosen suggestion open the results page or the page itself?
For a page-title suggestion, opening the page directly gets readers there faster. For a term suggestion (a popular search), opening the results page for that term fits better.
The browser’s own history overlaps the suggestions.
When the browser’s input history overlaps the suggestions, set the input’s autocomplete to off so only the site’s suggestions show.















