Writing & StyleStyle guide

Writing Visible Input-Format Examples

Writing Visible Input-Format Examples records a distinct W3C-supported accessibility writing task while keeping implementation mechanics outside the writing guidance.

Quick answer

When a field expects a specific format, show a visible example such as “MM/YYYY” or “21/07/2013” alongside the instruction or label.

Key details

Core IssueW3C form guidance recommends stating required data formats and gives visible examples such as date-format examples in labels or instructions.
Registerweb accessibility and interface content

Important caveats

Scope Boundary

Keep the real field label and any essential requirement visible; an example supports the instruction but does not replace labeling, validation, or error handling.

Further guidance

Content

Show the expected format in visible instructions or the control label, using a concrete example when that makes the required pattern easier to understand.

Purpose

A visible example lets users review the expected pattern before and during input instead of relying on disappearing placeholder text.

Sources and evidence

Sources are shown with the role they play in this guide. Historical or style-sensitive claims are kept within the evidence boundary described above.

  1. Form Instructions — W3C WAI (opens in a new tab)World Wide Web Consortium (W3C) · W3C WAI guidance to provide form instructions including requirements, formats and timing limitations.

Explore the topic