<?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: Donia Robinson</title>
    <description>The latest articles on DEV Community by Donia Robinson (@doniarobinson).</description>
    <link>https://dev.to/doniarobinson</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%2F1065733%2Fc17738c7-0622-4112-8bbe-9eb1ef980590.jpeg</url>
      <title>DEV Community: Donia Robinson</title>
      <link>https://dev.to/doniarobinson</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/doniarobinson"/>
    <language>en</language>
    <item>
      <title>Introduction to WCAG</title>
      <dc:creator>Donia Robinson</dc:creator>
      <pubDate>Sun, 16 Apr 2023 13:57:13 +0000</pubDate>
      <link>https://dev.to/doniarobinson/introduction-to-wcag-2gof</link>
      <guid>https://dev.to/doniarobinson/introduction-to-wcag-2gof</guid>
      <description>&lt;p&gt;From enterprise tech companies to fast-food companies, accessibility is on the menu. And why shouldn't it be? The "information superhighway" promised a veritable &lt;em&gt;superhighway of information&lt;/em&gt;. Those companies, and most companies in between, have noticed that it's good for users and/or good for business to have that information &lt;em&gt;accessible&lt;/em&gt; to as many people as possible. Like the diagram below shows, there can be permanent, temporary, and situational reasons for people to need accessibility accommodations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VvWfA68S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f3x0rrcwaylp9mc7abm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VvWfA68S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f3x0rrcwaylp9mc7abm.png" alt="Microsoft Design Toolkit diagram of different accessibility situations" width="687" height="866"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Unfortunately, dedicated accessibility developer positions within these companies have not always kept up the pace. This means that we frontend and full-stack developers, skilled in HTML, CSS, JavaScript, and/or JS frameworks, might find ourselves in uncharted territory when asked to "make the website accessible." What are we to do?&lt;/p&gt;

&lt;p&gt;Some developers may be tempted to &lt;a href="https://en.wiktionary.org/wiki/throw_spaghetti_at_the_wall"&gt;throw code at the problem to see what works&lt;/a&gt; - with the help of accessibility tools.* Accessibility testing tools like &lt;a href="https://www.deque.com/axe/devtools/chrome-browser-extension/"&gt;Axe&lt;/a&gt; and &lt;a href="https://wave.webaim.org/"&gt;Wave&lt;/a&gt; provide great results. However, like any failed test, we have to know how to change our code in order to make the test pass. A testing tool might present us with five ways our code is faulty:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sflHugJR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptm2xoj22fqdyhypvou6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sflHugJR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptm2xoj22fqdyhypvou6.png" alt="Five errors from Axe" width="800" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which one is the culprit? Or do we need to fix all of these?&lt;/p&gt;

&lt;h2&gt;
  
  
  WCAG
&lt;/h2&gt;

&lt;p&gt;The answers we seek lie in WCAG. Here is the &lt;a href="https://www.w3.org/WAI/WCAG21/quickref/"&gt;Web Content Accessibility Guidelines (WCAG) quick reference&lt;/a&gt;, which is like the {insert your favorite reference to an important book or trophy here} of accessibility. It's not necessary to memorize every guideline, but knowing how to read a guideline, its success criteria, and its techniques will be a great start towards "making the website accessible."&lt;/p&gt;

&lt;p&gt;WCAG is composed of four layers of guidance: principles, guidelines, success criteria, and sufficient &amp;amp; advisory techniques. Let’s look at each layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Principles
&lt;/h3&gt;

&lt;p&gt;The top layer contains four accessibility &lt;strong&gt;principles&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;perceivable&lt;/li&gt;
&lt;li&gt;operable&lt;/li&gt;
&lt;li&gt;understandable&lt;/li&gt;
&lt;li&gt;robust&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The guidelines and success criteria are organized within these principles for clarity.&lt;/p&gt;

&lt;h3&gt;
  
  
  Guidelines
&lt;/h3&gt;

&lt;p&gt;The next layer contains the 13 &lt;strong&gt;guidelines&lt;/strong&gt;. These serve as goals for authors to work toward to make content more accessible. They are not testable, but help authors understand success criteria better.&lt;/p&gt;

&lt;p&gt;Let's take a look at a specific guideline to learn how to dissect any guideline that crosses our path in the future. The example we'll look at is Guideline 3.3 - Input Assistance. In the image below, the relevant hierarchy is:&lt;br&gt;
  3. Understandable - &lt;strong&gt;Principle&lt;/strong&gt;&lt;br&gt;
    3.3 Input Assistance - &lt;strong&gt;Guideline&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KQUu9jB2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36bvoops0xb6z9507s4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KQUu9jB2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36bvoops0xb6z9507s4y.png" alt="Menu structure for Understandable section 3" width="494" height="722"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Success Criteria
&lt;/h3&gt;

&lt;p&gt;Digging deeper into our example, we reach success criteria. As mentioned, guidelines are helpful for understanding accessibility goals, but success criteria are testable so that it can be clearly shown if conformance has been met.&lt;/p&gt;

&lt;p&gt;In the menu structure above, the relevant hierarchy is:&lt;br&gt;
  3. Understandable - &lt;strong&gt;Principle&lt;/strong&gt;&lt;br&gt;
    3.3 Input Assistance - &lt;strong&gt;Guideline&lt;/strong&gt;&lt;br&gt;
      3.3.1 Error Identification - &lt;strong&gt;Success Criteria&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Error Identification success criteria is met "If an input error is automatically detected, the item that is in error is identified and the error is described to the user in text." Ah, now &lt;em&gt;this&lt;/em&gt; we can test!&lt;/p&gt;

&lt;p&gt;Clicking the button to the right will provide even more information about this guideline (the quick reference on the previous page is meant to be a quick reference!).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wEnA5Nss--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1kjoqvg1fnzk43je2nq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wEnA5Nss--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1kjoqvg1fnzk43je2nq.png" alt="Success criteria for 3.3.1 Error Identification" width="800" height="687"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's worth reading a few of these in depth, as they are a wealth of information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZiwT6Gs9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dgel5nepcds1uiqjtcm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZiwT6Gs9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dgel5nepcds1uiqjtcm.png" alt="More information about guideline 3.3" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An aside: the 13 guidelines are each broken into many success criteria, which can make it seem like there is a lot to keep track of. It can be helpful to focus on the guidelines and understand the high-level goals. Here it is "help users avoid and correct mistakes." From a UX perspective, this is something that - without any talk of accessibility - can be incorporated into development from the very beginning. Accessibility need not be complicated.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sufficient and Advisory Techniques
&lt;/h3&gt;

&lt;p&gt;The final layer contains &lt;strong&gt;sufficient techniques, advisory techniques, and documented failures&lt;/strong&gt;. Sufficient techniques are provided by the working group as reliable ways to meet the success criteria. Advisory techniques may work, but may not be stable or testable. Documented failures show authors what to avoid or items that fail specific success criteria.&lt;/p&gt;

&lt;p&gt;This success criteria has both sufficient and advisory criteria, but not all guidelines will.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w4jokL3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y1zbrkxw4f5ipxhq59iy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w4jokL3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y1zbrkxw4f5ipxhq59iy.png" alt="Sufficient and advisory techniques for 3.3.1 Error Identification" width="800" height="687"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Summing it Up
&lt;/h3&gt;

&lt;p&gt;Though memorizing every guideline and success criteria in WCAG is not necessary, being able to dissect a success criteria when it comes onto your radar is an invaluable skill for any web developer to have. Whether an accessibility tool like Axe or Wave flags it for you or you get assigned a ticket with a cryptic number in it, the skills you learned above will serve as a map to navigating WCAG "making the website accessible."&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm not advocating we **not&lt;/em&gt;* use tools like Axe and Wave. Exactly the opposite. They are indispensable and belong in any web development accessibility workflow. However, they should be used alongside at least a high-level understanding of WCAG and the skills to dig into any WCAG guideline when needed.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>a11y</category>
      <category>css</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
