Buttons now include a `role="button"` to aid with assistive technologies like screen readers.
`alt="[Description]"` has been nullified and set to `alt=""` on buttons to reduce duplicative screen reader announcements since the button text gives the context to the button and imagery is purely decorative.
<p>An open source DIY <ahref="https://linktr.ee"target="_blank"rel="noopener">Linktree</a> alternative.</p>
<p>An open source DIY <ahref="https://linktr.ee"target="_blank"rel="noopener"role="link">Linktree</a> alternative.</p>
<!--
@ -86,6 +86,8 @@
4.) rel="noopener" | This attribute instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it.
This is especially useful when opening untrusted links. https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noopener
5.) role="button" | The button role identifies an element as a button to assistive technology such as screen readers.
## Breaking down the <img> attributes:
1.) class="icon" | This class is telling the <img> tag that it should use the styling for icons found in `css/brands.css`.
@ -93,318 +95,319 @@
2.) src="images/icons/[icon-name].svg" | This defines the icon you would like to display from the 'images/icons/' folder. For example, you can change this to src="images/icons/discord.svg" to use the Discord icon.
Add your own 24x24 icons to the "icons" folder to reference them. We recommend providing a SVG.
3.) alt="Example Logo" | This alt attribute helps provides alternate text for an image, this can assist users who use screen readers.
3.) alt="" | Since the text at the end of the snippet, "..>[Button Text]</a><br>", explains what the button is, we use "alt=""" to nullify the icon annoucement from the accessibility tree.
This can improve the experience for assistive technology users by hiding what is essentially duplicated
<aclass="button button-amazon-music"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/amazon-music.svg"alt="Amazon Music Logo">Listen on Amazon Music</a><br>
<aclass="button button-amazon-music"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/amazon-music.svg"alt="">Listen on Amazon Music</a><br>
<aclass="button button-apple-music"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/apple-music.svg"alt="Apple Music Logo">Listen on Apple Music</a><br>
<aclass="button button-apple-music"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/apple-music.svg"alt="">Listen on Apple Music</a><br>
<!-- Apple Music Alternate -->
<aclass="button button-apple-music-alt"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/apple-music-alt.svg"alt="Apple Music Logo">Listen on Apple Music</a><br>
<aclass="button button-apple-music-alt"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/apple-music-alt.svg"alt="">Listen on Apple Music</a><br>
<!-- Apple Podcasts -->
<aclass="button button-apple-podcasts"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/apple-podcasts.svg"alt="Apple Prodcasts Logo">Listen on Apple Podcasts</a><br>
<aclass="button button-apple-podcasts"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/apple-podcasts.svg"alt="">Listen on Apple Podcasts</a><br>
<!-- Apple Podcasts Alternate -->
<aclass="button button-apple-podcasts-alt"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/apple-podcasts-alt.svg"alt="Apple Prodcasts Logo">Listen on Apple Podcasts</a><br>
<aclass="button button-apple-podcasts-alt"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/apple-podcasts-alt.svg"alt="">Listen on Apple Podcasts</a><br>
<aclass="button button-coffee"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/buy-me-a-coffee.svg"alt="Buy Me A Coffee Logo">Buy Me A Coffee</a><br>
<aclass="button button-coffee"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/buy-me-a-coffee.svg"alt="">Buy Me A Coffee</a><br>
<!-- Cal.com -->
<aclass="button button-cal"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/cal.svg"alt="Cal.com Logo">Schedule with Cal.com</a><br>
<aclass="button button-cal"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/cal.svg"alt="">Schedule with Cal.com</a><br>
<!-- Calendly -->
<aclass="button button-calendly"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/calendly.svg"alt="Calendly Logo">Schedule with Calendly</a><br>
<aclass="button button-calendly"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/calendly.svg"alt="">Schedule with Calendly</a><br>
<aclass="button button-etsy"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/etsy.svg"alt="Etsy Logo">Shop on Etsy</a><br>
<aclass="button button-etsy"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/etsy.svg"alt="">Shop on Etsy</a><br>
<!-- Facebook -->
<aclass="button button-faceb"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/facebook.svg"alt="Facebook Logo">Find us on Facebook</a><br>
<aclass="button button-faceb"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/facebook.svg"alt="">Find us on Facebook</a><br>
<!-- Facebook Messenger -->
<aclass="button button-messenger"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/messenger.svg"alt="Facebook Messenger Logo">Chat on Messenger</a><br>
<aclass="button button-messenger"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/messenger.svg"alt="">Chat on Messenger</a><br>
<aclass="button button-google-black"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/google-drive.svg"alt="Google Drive Logo">View in Google Drive</a><br>
<aclass="button button-google-black"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/google-drive.svg"alt="">View in Google Drive</a><br>
<!-- Google Play Store -->
<aclass="button button-playstore"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/google-play.svg"alt="Google Play Store Logo">Google Play Store</a><br>
<aclass="button button-playstore"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/google-play.svg"alt="">Google Play Store</a><br>
<!-- Google Podcasts -->
<aclass="button button-google-podcasts"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/google-podcasts.svg"alt="Google Podcasts Logo">Listen on Google Podcasts</a><br>
<aclass="button button-google-podcasts"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/google-podcasts.svg"alt="">Listen on Google Podcasts</a><br>
<aclass="button button-spotify"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/spotify.svg"alt="Spotify Logo">Listen on Spotify</a><br>
<aclass="button button-spotify"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/spotify.svg"alt="">Listen on Spotify</a><br>
<!-- Spotify Alt -->
<aclass="button button-spotify-alt"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/spotify-alt.svg"alt="Spotify Logo">Listen on Spotify</a><br>
<aclass="button button-spotify-alt"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/spotify-alt.svg"alt="">Listen on Spotify</a><br>
<!-- Square -->
<aclass="button button-square"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/square.svg"alt="Square Logo">Buy with Square</a><br>
<aclass="button button-square"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/square.svg"alt="">Buy with Square</a><br>
<aclass="button button-yt"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/youtube-music.svg"alt="YouTube Music Logo">Listen on YouTube Music</a><br>
<aclass="button button-yt"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/youtube-music.svg"alt="">Listen on YouTube Music</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/generic-code.svg"alt="Code Icon">View the code</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/generic-code.svg"alt="">View the code</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/generic-email-alt.svg"alt="Email Alt Icon">Email Us</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/generic-review.svg"alt="Review Icon">Leave us a review</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/generic-review.svg"alt="">Leave us a review</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/generic-shopping-tag.svg"alt="Shopping Tag Icon">10% Discount</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"><imgclass="icon"src="images/icons/generic-sms.svg"alt="SMS Icon">Send us a message</a><br>
<aclass="button button-default"href="#"target="_blank"rel="noopener"role="button"><imgclass="icon"src="images/icons/generic-sms.svg"alt="">Send us a message</a><br>
This also includes a link to the LittleLink repository to make forking LittleLink easier.
You can edit or remove anything here to make your own footer.
-->
<p><ahref="privacy.html">Privacy Policy</a> | Build your own by forking <ahref="https://littlelink.io"target="_blank"rel="noopener">LittleLink</a>.</p>
<p><ahref="privacy.html">Privacy Policy</a> | Build your own by forking <ahref="https://littlelink.io"target="_blank"rel="noopener"role="button">LittleLink</a>.</p>