required vs aria-required & Error Wiring

The Warta RT sign-up: press Kirim on a real form and see the browser’s validation or your script, what Mr. Sugeng hears from aria-invalid and…

Why it matters

Forms fail validation every day. When the error only comes through colour and position, a screen reader user only hears “edit text” and presses Kirim again without knowing why. Wiring aria-invalid and aria-describedby correctly is what makes a form usable by everyone (WCAG 3.3.1 Error Identification, 3.3.3 Error Suggestion).

The key idea

A red error on screen is not an error anyone hears

Common mistakes

Try it in this playground