Skip to content

Commit

Permalink
fix: aria role (#37537)
Browse files Browse the repository at this point in the history
aria role
  • Loading branch information
gagan-bhullar-tech authored Jan 7, 2025
1 parent a5de116 commit 0f7aca6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/en-us/web/api/htmlimageelement/alt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,17 @@ In other words, it should be the same text you would use in a textual button to
For example, in the snippet of HTML below, a toolbar which uses icon images as link labels provides `alt` attributes for each giving a textual label to use instead of the icon when the icons cannot be or are intentionally not used.

```html
<li class="toolbar" aria-role="toolbar">
<a href="songs.html" aria-role="button">
<li class="toolbar" role="toolbar">
<a href="songs.html" role="button">
<img src="songicon.svg" alt="Songs" />
</a>
<a href="albums.html" aria-role="button">
<a href="albums.html" role="button">
<img src="albumicon.svg" alt="Albums"
/></a>
<a href="artists.html" aria-role="button">
<a href="artists.html" role="button">
<img src="artisticon.svg" alt="Artists" />
</a>
<a href="playlists.html" aria-role="button">
<a href="playlists.html" role="button">
<img src="playlisticon.svg" alt="Playlists" />
</a>
</li>
Expand Down

0 comments on commit 0f7aca6

Please sign in to comment.