<?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: Konstantin Rouda</title>
    <description>The latest articles on DEV Community by Konstantin Rouda (@konrud).</description>
    <link>https://dev.to/konrud</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%2F126132%2F013dbd5f-6d4f-4a5d-93cf-5b5bf07a7c1a.jpeg</url>
      <title>DEV Community: Konstantin Rouda</title>
      <link>https://dev.to/konrud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/konrud"/>
    <language>en</language>
    <item>
      <title>5 Rules of ARIA</title>
      <dc:creator>Konstantin Rouda</dc:creator>
      <pubDate>Sat, 25 Feb 2023 13:08:53 +0000</pubDate>
      <link>https://dev.to/konrud/5-rules-of-aria-40i</link>
      <guid>https://dev.to/konrud/5-rules-of-aria-40i</guid>
      <description>&lt;p&gt;Have you ever heard about ARIA? It might sound weird and maybe even intimidating at first. &lt;/p&gt;

&lt;p&gt;In this post, I'd like to talk about the 5 essential rules of ARIA.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does ARIA stand for?
&lt;/h2&gt;

&lt;p&gt;Let's start first from the meaning of this acronym.&lt;br&gt;
ARIA - stands for &lt;strong&gt;A&lt;/strong&gt;ccessible &lt;strong&gt;R&lt;/strong&gt;ich &lt;strong&gt;I&lt;/strong&gt;nternet &lt;strong&gt;A&lt;/strong&gt;pplications. &lt;br&gt;
It's a set of &lt;em&gt;roles&lt;/em&gt; and &lt;em&gt;attributes&lt;/em&gt; that define ways to make web content and web applications (especially those developed with JavaScript) more accessible to everyone. &lt;/p&gt;

&lt;p&gt;There are 5 essential rules of ARIA.&lt;/p&gt;


&lt;h2&gt;
  
  
  First Rule - Don't use ARIA (unless you don't have a choice)
&lt;/h2&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw22p7w23r28n45hsqvlz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw22p7w23r28n45hsqvlz.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It might sound a bit counter-intuitive, but rather than creating our own custom elements and trying to make them accessible by adding ARIA attributes, we should use native HTML elements instead. &lt;/p&gt;

&lt;p&gt;Instead of creating a button using &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;“button”&lt;/span&gt; &lt;span class="na"&gt;tabindex=&lt;/span&gt;&lt;span class="s"&gt;“0”&lt;/span&gt; &lt;span class="na"&gt;aria-pressed=&lt;/span&gt;&lt;span class="s"&gt;“false”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Open&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It'd be much better to use native HTML &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; instead&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;“button”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Open&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we can use a native HTML element, then we should do so. We should reach out to ARIA as a last resort.&lt;/p&gt;




&lt;h2&gt;
  
  
  Second Rule - Prefer native semantics over ARIA
&lt;/h2&gt;




&lt;p&gt;We should always prefer native HTML elements over custom elements with ARIA attributes.&lt;/p&gt;

&lt;p&gt;Let's say, we'd like to create a title. In such case, it'd be better if we use a native &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt; HTML element rather than a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; with ARIA attributes.&lt;/p&gt;

&lt;p&gt;Not a good idea.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;"heading"&lt;/span&gt; &lt;span class="na"&gt;aria-level=&lt;/span&gt;&lt;span class="s"&gt;"2"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Title text&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We should prefer to use native HTML elements instead.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Title text&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; &lt;br&gt;
If we create an interactive element, let's say a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;, using &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;. &lt;br&gt;
In addition to using proper ARIA attributes, we will need to add appropriate interaction behavior (e.g. click handler) using JavaScript. &lt;/p&gt;

&lt;p&gt;That's why, in the case of a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;, it is much better and easier to just use a native element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;“button”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Open&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Third Rule - All interactive elements must be usable with a keyboard
&lt;/h2&gt;




&lt;p&gt;All interactive elements, whether it be a custom element we created or a native HTML element, must be usable with both a mouse and a keyboard.&lt;/p&gt;

&lt;p&gt;If we created a widget that can be clicked, tapped, dragged, slid, or scrolled. A user should be able to use it with both a mouse and a keyboard.&lt;/p&gt;

&lt;p&gt;If using &lt;code&gt;role=button&lt;/code&gt;, on a custom element, the element must be able to receive focus and a user must be able to activate the action associated with the element using both the &lt;code&gt;enter&lt;/code&gt; (on WIN OS) and the &lt;code&gt;space&lt;/code&gt; key.&lt;/p&gt;




&lt;h2&gt;
  
  
  Fourth Rule - Do not use &lt;code&gt;role="presentation"&lt;/code&gt; or &lt;code&gt;aria-hidden="true"&lt;/code&gt; on a focusable element
&lt;/h2&gt;




&lt;p&gt;Using &lt;code&gt;role="presentation"&lt;/code&gt; or &lt;code&gt;aria-hidden&lt;/code&gt; on a focusable element might result in some users focusing on it and getting inaccurate information. In some cases, users won't even be able to discover such elements.&lt;/p&gt;

&lt;p&gt;Using either of these on a focusable element might result in some users focusing on 'nothing'.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;role=&lt;/span&gt;&lt;span class="s"&gt;“presentation”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt; 

&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;“true”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Setting &lt;code&gt;aria-hidden&lt;/code&gt; on a parent/ancestor element, of a visible interactive element (e.g. &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;), will also hide an element from assistive technologies (e.g. screen reader).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;  
   &lt;span class="nt"&gt;&amp;lt;button&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt; 
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; We can use &lt;code&gt;aria-hidden&lt;/code&gt; on an element, as long as it's not focusable.&lt;/p&gt;

&lt;p&gt;We can set &lt;code&gt;tabindex="-1"&lt;/code&gt; on a focusable element that will remove it from the tab order, so it won't be focusable by a keyboard, but we can still be able to focus it using JavaScript if we want to.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;// tabindex="-1" removes the button from the tab order  
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;tabindex=&lt;/span&gt;&lt;span class="s"&gt;“-1”&lt;/span&gt; &lt;span class="na"&gt;aria-hidden=&lt;/span&gt;&lt;span class="s"&gt;“true”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; If we use &lt;code&gt;display: none&lt;/code&gt; or &lt;code&gt;visibility: hidden&lt;/code&gt; (either on an element or on the element's ancestor) it won't be focusable and will be removed from the accessibility tree. &lt;br&gt;
That is, screen readers won't be able to discover it. In such case, we don't need to add &lt;code&gt;aria-hidden&lt;/code&gt; or negative tabindex on such an element.&lt;/p&gt;

&lt;p&gt;CSS&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.hidden-btn&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;“hidden-btn“&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Fifth Rule - All interactive elements must have an accessible name
&lt;/h2&gt;




&lt;p&gt;Accessible name, is a name of a UI element. Each platform has its own accessibility API which provides such property. The value of the accessible name may be derived from a visible or invisible property on an element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visible property&lt;/strong&gt; - visible text of an element. Let's say, a visible text on a button.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Invisible property&lt;/strong&gt; - ARIA attributes such as &lt;code&gt;aria-label&lt;/code&gt; or &lt;code&gt;aria-labelledby&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Let's take a look at a few examples, so we can understand it better.&lt;/p&gt;

&lt;p&gt;Here the text "&lt;em&gt;press me&lt;/em&gt;" is the visible text of the &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; and as such, can be used as an accessible name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&amp;gt;&lt;/span&gt;press me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; receives focus, a screen reader may announce something like "&lt;em&gt;press me, button&lt;/em&gt;" concatenating a role (&lt;em&gt;button&lt;/em&gt;) of the element and its name (&lt;em&gt;press me&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;The order of concatenation and a role description depends on a platform's accessibility API and the assistive technology (e.g. screen reader) that is used.&lt;/p&gt;




&lt;p&gt;The &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; in the code examples below has a visible label "&lt;em&gt;username&lt;/em&gt;" , but no accessible name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;username &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;username&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; has a visible label but it can not be used as an accessible name. It cannot be associated with the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;. &lt;br&gt;
In such case, a screen reader won't be able to announce the accessible name of the &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;. That would be, an accessibility violation.&lt;/p&gt;



&lt;p&gt;In comparison, this &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt; has both a visible label and an accessible name.&lt;/p&gt;

&lt;p&gt;Using &lt;code&gt;&amp;lt;for&amp;gt;&lt;/code&gt; attribute&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"userNameId"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;username&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt; 
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"userNameId"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or &lt;/p&gt;

&lt;p&gt;Wrapping it with a &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;label&amp;gt;&lt;/span&gt; 
  username  
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 
&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the examples above, we use a &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt; element to provide an accessible name for our &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  What if we can't use &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt; or &lt;code&gt;for&lt;/code&gt; attribute?
&lt;/h3&gt;

&lt;p&gt;In such a case we might use ARIA attributes, &lt;br&gt;
namely &lt;code&gt;aria-label&lt;/code&gt; or &lt;code&gt;aria-labelledby&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Using &lt;code&gt;aria-label&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;aria-label=&lt;/span&gt;&lt;span class="s"&gt;"Username"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using &lt;code&gt;aria-labelledby&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"fldUsrnm"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;username&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;  


&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;aria-labelledby=&lt;/span&gt;&lt;span class="s"&gt;"fldUsrnm"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this situation, we use ARIA as a last resort, which is perfectly fine.&lt;/p&gt;




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

&lt;p&gt;There you have it the 5 rules of ARIA&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Don't use ARIA (unless you really have to)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prefer native semantics over ARIA&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;All interactive elements must be usable with a keyboard&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do not use role="presentation" or aria-hidden="true" on a &lt;br&gt;
focusable element&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;All interactive elements must have an accessible name&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Of course it's not all, and we barely scratched the surface. Nevertheless, I hope it's a beginning of a better understanding ARIA.&lt;/p&gt;

&lt;p&gt;I hope this post was useful for you as a reference.&lt;/p&gt;

</description>
      <category>a11y</category>
      <category>html</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
