fix(skills): add required attr alongside aria-required in form example

This commit is contained in:
hjkim0905
2026-05-25 00:15:18 +09:00
parent 4e4ccebacb
commit cd52c3b7f2
+2 -2
View File
@@ -44,11 +44,11 @@ Missing `htmlFor` / `id` pairing and disconnected error messages are the most co
<label htmlFor="email">Email *</label> <label htmlFor="email">Email *</label>
<input id="email" type="email" /> <input id="email" type="email" />
// GOOD: aria-required signals requirement programmatically // GOOD: required enables native browser validation; aria-required signals it to screen readers
<label htmlFor="email"> <label htmlFor="email">
Email <span aria-hidden="true">*</span> Email <span aria-hidden="true">*</span>
</label> </label>
<input id="email" type="email" aria-required="true" /> <input id="email" type="email" required aria-required="true" />
``` ```
### Error Messages ### Error Messages