EN, Change language
Englishالعربية
OM-076

Do not rely on placeholder text as the only label; use placeholders only as supporting examples.

The requirement (from the design system site)

Do not rely on placeholder text as the only label; use placeholders only as supporting examples.

Why it matters to users

When the placeholder is the only name a field has, it vanishes as soon as the user types, so on review they cannot tell whether the phone number went in the right box. Some screen readers do not read it at all, leaving the field nameless.

How to fix it

Add a visible, linked label to every field that has a placeholder, or use gup-input-field with its label text, and keep the placeholder as a supporting example only. Then scan again.

How we measure it

For every input/textarea with a placeholder outside search boxes, check it also has a visible associated label (label[for], wrapping label, or gup-input-field label text); fail if the placeholder is the only text naming the field. Search boxes are judged under OM-087.

English page timed out in our render; requirement_en translated from the official Arabic page. Stated twice (placeholder variant and Don't list); merged. Arabic is ours: the official Don't list reads «الاعتماد على النص التوضيحي كتسمية وحيدة» under «ما لا يجب فعله», which read alone says the opposite; we add «لا» and call the placeholder «النص المؤقت» (the hint is «التلميح»).

The rule on the design system site

Related rules

Placeholder is not a label · Oman OM-076 | xfix