Accessibility · Names and labels

Form input without a visible label

A text field on this page is named only by its title attribute, so it has no visible label and the hint appears only on mouse hover.

How this page is built

The field below has title="Search the site" and nothing else to name it.

Why it matters

A title gives the field an accessible name, but it shows only as a tooltip when a mouse hovers. Keyboard and touch users never see it, and people with memory or attention difficulties lose track of what the field is for.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule label-title-only.

How to fix it

Add a visible <label>. Keep title only as extra help, if at all.

Back to all tests