Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-rj authored Jun 9, 2024
1 parent 56728af commit 00d5f1c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,7 @@ Users should be able to:

- `novalidate`: I used the `novalidate` attribute on the `form` element to prevent the browser from validating the `form` by default.

- `aria-live="polite"`: I used this to make the error message accessible to screen reader users.

```html
<form novalidate>
<div>
<label for="emailField">Email address</label>
<input type="email" id="emailField" name="email" required />
<span aria-live="polite"></span>
</div>
<button>Submit</button>
</form>
```
- `role="alert"`, `aria-live="polite"`, `aria-describedby` and `aria-invalid`: I used these to make the error message accessible for screen reader users.

- **Constraint validation API**

Expand Down

0 comments on commit 00d5f1c

Please sign in to comment.