Skip to content

Commit

Permalink
Naming Rule 3: Remove mention of alt attribute
Browse files Browse the repository at this point in the history
Per feedback from @LJWatson in issue #1050, revises rule 3 to remove mention of alt.
Adds sentence refering readers to the naming techniques for specific advantages of using HTML features instead of ARIA.
  • Loading branch information
mcking65 committed Jul 2, 2019
1 parent cd7111e commit 121655e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aria-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -3796,8 +3796,9 @@ <h5>Rule 2: Prefer Visible Text</h5>
<section id="naming_rule_native_techniques">
<h5>Rule 3: Prefer Native Techniques</h5>
<p>
In HTML documents, whenever possible, rely on HTML naming techniques, such as the HTML <code>label</code> element, <code>alt</code> attribute for images, <code>caption</code> element for tables, etc.
In HTML documents, whenever possible, rely on HTML naming techniques, such as the HTML <code>label</code> element for form elements and <code>caption</code> element for tables.
While less flexible, their simplicity and reliance on visible text help ensure robust accessible experiences.
Several of the <a href="#naming_techniques">naming techniques</a> highlight specific accessibility advantages of using HTML features instead of ARIA attributes.
</p>
</section>

Expand Down

0 comments on commit 121655e

Please sign in to comment.