Forms and validation: Confirmation states
A status region can announce a completed action while leaving focus on the current control.
Current edit
Understand the pattern
A status region can announce a completed action while leaving focus on the current control.
A status region can announce a completed action while leaving focus on the current control.
Misconceptions to reject
- A visual appearance alone guarantees the intended HTML meaning.
- Replacing semantic elements with generic divs automatically improves accessibility.
The preview is a sanitized subset, not a full browser compatibility test.
Worked example and expected result
<p id="confirmation" role="status">Signup preview ready.</p><button type="button">Edit details</button>A status region can announce a completed action while leaving focus on the current control.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Forms and validation: Validation checkpointTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.