<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Guilherme Victor</title>
    <description>The latest articles on DEV Community by Guilherme Victor (@guilhermevictor).</description>
    <link>https://dev.to/guilhermevictor</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F584940%2Fd52b26c6-5f6c-4197-a5f3-3e0c5e904e85.jpg</url>
      <title>DEV Community: Guilherme Victor</title>
      <link>https://dev.to/guilhermevictor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guilhermevictor"/>
    <language>en</language>
    <item>
      <title>Accessibility on web</title>
      <dc:creator>Guilherme Victor</dc:creator>
      <pubDate>Thu, 21 Nov 2024 00:08:25 +0000</pubDate>
      <link>https://dev.to/guilhermevictor/accessibility-on-web-mm1</link>
      <guid>https://dev.to/guilhermevictor/accessibility-on-web-mm1</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hi, that's my first article based on my studies and notes, enjoy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beneficts of accessibility
&lt;/h2&gt;

&lt;p&gt;In a research by Rebecca Wettemann &amp;amp; Trevor White called &lt;a href="https://nucleusresearch.com/research/single/the-internet-is-unavailable/" rel="noopener noreferrer"&gt;&lt;em&gt;The Internet is Unavailable&lt;/em&gt;&lt;/a&gt; they assert:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"For Internet retailers alone, denying full access to consumers who are blind is leaving as much as $6.9 billion annually to a handful of accessible alternatives."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In other words, not making your site accessible besides being unethical, can cause a significant loss of users depending on the kind of business that you site operates.&lt;/p&gt;

&lt;p&gt;To make your site accessible we are going to understand the work that has been done to make it possible with WCAG&lt;/p&gt;

&lt;h2&gt;
  
  
  What is it ?
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.w3.org/TR/WCAG21/" rel="noopener noreferrer"&gt;WCAG&lt;/a&gt; is a guide created by &lt;a href="https://www.w3.org/WAI/" rel="noopener noreferrer"&gt;WAI&lt;/a&gt; (Web Accessibility Initiative) through the &lt;a href="https://www.w3.org/" rel="noopener noreferrer"&gt;W3C&lt;/a&gt; (The World Wide Web Consortium), that develop patterns and guidelines to help everybody to build a web based on accessibility principles, internationalization, privacy and security.&lt;/p&gt;

&lt;p&gt;The structure from the guide is divided in four nested layers&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Principles&lt;/strong&gt;: At the top are four principles that constitute the base of web accessibility on Web: &lt;em&gt;Perceivable, Operable, Understandable and Robust&lt;/em&gt;.

&lt;ul&gt;
&lt;li&gt;- &lt;strong&gt;Guidelines&lt;/strong&gt;: Below the principles are the guidelines. The thirteen guidelines provide the basic objectives must have to achieve the content more accessible to the users with disabilities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Success Criteria&lt;/strong&gt;: For each guideline, are given success criteria, in order to meet the needs of multiple groups and situations, are defined three levels of compliance: A (the lowest), AA and AAA (the highest)

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Techniques&lt;/strong&gt;: The techniques are informative and have two categories: those that are &lt;em&gt;sufficient&lt;/em&gt; to for meeting the success criteria and those that are &lt;em&gt;advisory&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Now we're going through some of the principles and highlighting some important guidelines for these principles in a &lt;strong&gt;VERY&lt;/strong&gt; short way. The recommendation is to read the official &lt;a href="https://www.w3.org/TR/WCAG21/" rel="noopener noreferrer"&gt;WCAG&lt;/a&gt; guide.&lt;/p&gt;

&lt;p&gt;But before, to clarify the success criteria, your site doesn't need to follow all the triple A (AAA) criteria, just the AA and A are enough to have a accessible website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Perceivable
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Provide text alternatives for any non-text content&lt;/li&gt;
&lt;li&gt;Provide alternatives for time-based media.

&lt;ul&gt;
&lt;li&gt;Subtitles&lt;/li&gt;
&lt;li&gt;Closed Captions&lt;/li&gt;
&lt;li&gt;Sign Language&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Create content that can be presented from different ways (for example a simplified layout)&lt;/li&gt;

&lt;li&gt;To facilitate the hearing and visualization of content to the users

&lt;ul&gt;
&lt;li&gt;Not use just colors to transmit information and use the correct contrast of colors&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Operable
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Make all functionality available from a keyboard.&lt;/li&gt;
&lt;li&gt;Provide users enough time to read and use content.

&lt;ul&gt;
&lt;li&gt;If you have a component that changes based on time, give funcionalities to pause, stop or extend the time.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Do not design content in a way that is known to cause seizures or physical reactions.

&lt;ul&gt;
&lt;li&gt;Avoid creating websites with excessive animations and blinking stuff on the screen if you need, provide an option to reduce the animations using &lt;code&gt;prefers-reduced-motion&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  Understandable
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Made the text content readable and understandable&lt;/li&gt;
&lt;li&gt;Make Web pages appear and operate in predictable ways.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Robust
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Content must be robust enough that it can be interpreted by a wide variety of user agents, including assistive technologies.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Remembering, the points above are extremelly summarized, in the guide you will found the success criteria for each guideline and their levels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making your website accessible
&lt;/h2&gt;

&lt;p&gt;The secret to making your website ready for assistive technologies is on the semantics of your HTML, the foundation is choose wisely the HTML elements used to build your website.&lt;/p&gt;

&lt;p&gt;Don't use only divs and spans to build your website, use them just for styling purposes.&lt;/p&gt;

&lt;p&gt;Every state of your component needs to be communicated to the users, if it's open or not, if it's related with another element. All these things need to be communicated to the user.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accessible Rich Internet Applications (ARIA)
&lt;/h2&gt;

&lt;p&gt;The ARIA is a set of special attributes for accessibility, that can be added to any markup language but is specially designed for HTML&lt;/p&gt;

&lt;p&gt;This attributes can be categorized into roles, states and properties&lt;/p&gt;

&lt;p&gt;Properties can be used to give more meaning or semantics to an element, for example &lt;code&gt;aria-label&lt;/code&gt; where you can add a label to any element that doesn't have one, providing more context.&lt;/p&gt;

&lt;p&gt;States define the actual condition of an element for example &lt;code&gt;aria-disabled&lt;/code&gt; which specifies for screen readers that an element is disabled&lt;/p&gt;

&lt;p&gt;Roles define what the element is, imagine a role as a preset, because a role uses other aria attributes to tell what that element is. For example &lt;code&gt;role="alert"&lt;/code&gt; under the hood uses &lt;code&gt;aria-live="assertive"&lt;/code&gt; and &lt;code&gt;aria-atomic="true"&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So that's it, this is a introduction to accessibility on web there's a lot to learn along the way. I hope this article helped you some way it's the first article I'm writing and the first time I'm trying to write in english (I am currently learning english)&lt;/p&gt;

&lt;p&gt;See ya!&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://youtu.be/QLO0iZ1BbQo?si=XiP_pXnWudcCnu3x" rel="noopener noreferrer"&gt;Vamos falar sobre Acessibilidade na Web?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles" rel="noopener noreferrer"&gt;WAI-ARIA Roles&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.w3c.br/traducoes/wcag/wcag21-pt-BR/#abstract" rel="noopener noreferrer"&gt;WCAG&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.cnbc.com/2019/10/07/dominos-supreme-court.html" rel="noopener noreferrer"&gt;Supreme Court hands victory to blind man who sued Domino’s over site accessibility&lt;/a&gt;&lt;br&gt;
&lt;a href="https://nucleusresearch.com/research/single/the-internet-is-unavailable/" rel="noopener noreferrer"&gt;The Internet is unavailable&lt;/a&gt;&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
