Review this real-world form field implementation in a legacy codebase:
<div class="field">
<div class="label">Work Email</div>
<input placeholder="Enter work email" style="border: 1px solid #E0E0E0;" />
<span class="error" style="color: #F87171;">Invalid email address</span>
</div>
This input has four severe accessibility flaws:
<div> with no for or id link to the input.#E0E0E0) has a 1.2:1 contrast ratio against the white background (violating the 3.0:1 non-text rule).aria-invalid attribute.aria-describedby is missing).Level 2 · Core Principles & Governance