Skip to content

Commit

Permalink
Use consistent en-US spelling for labelling and labelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddily authored Nov 18, 2024
1 parent cffed14 commit 23698cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced_html_css/accessibility/wai_aria.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ The `aria-labelledby` attribute overrides both the native label and the `aria-la
The great thing about `aria-labelledby` is that not only can you pass in any number of `id` references, but you can also have an element reference itself. Keep in mind that you can't pass in the same reference multiple times, because any subsequent references after the first will be ignored.

```html
<!-- Here's the labelling element -->
<!-- Here's the labeling element -->
<h2 id='label'>Shirts</h2>

<!-- And here's the labelled element. Note the order of the ID references passed in -->
<!-- And here's the labeled element. Note the order of the ID references passed in -->
<button type='button' id='shop-btn' aria-labelledby='label shop-btn'>Shop Now</button>
```

Expand Down

0 comments on commit 23698cc

Please sign in to comment.