{"id":161,"date":"2022-04-21T08:43:43","date_gmt":"2022-04-21T05:43:43","guid":{"rendered":"https:\/\/www.accessi.org\/blog\/?p=161"},"modified":"2022-04-25T08:51:15","modified_gmt":"2022-04-25T05:51:15","slug":"web-accessibility-101","status":"publish","type":"post","link":"https:\/\/www.accessi.org\/blog\/web-accessibility-101\/","title":{"rendered":"Web Accessibility 101 &#8211; an Introduction"},"content":{"rendered":"<h2>What is Web Accessibility?<\/h2>\n<p>Accessibility (or A11y for short) is the process of making websites, web applications, and digital products that all audiences, including disabled people, can access.<\/p>\n<p>A website is accessible when disabled people can complete tasks and operate the website&#8217;s functionality.<\/p>\n<p>The goal of accessibility is to create an inclusive web for all users. To achieve this goal, it is essential to consider temporary and permanent motor, cognitive, visual, auditory, speech, and neurological disabilities.<\/p>\n<p>The disabilities can be permanent, temporary, or situational.<\/p>\n<h2>Why is Web Accessibility Important?<\/h2>\n<p>Accessibility is often an afterthought and not treated as an essential part of the web development process. However, you should adopt an accessibility-first approach when creating content for the web.<\/p>\n<p>Accessibility improves the ease of access to web content for people with and without disabilities. By building accessible websites, you end up creating a better experience for all your users. Everyone benefits from an accessible web.<\/p>\n<p>A World Bank <a title=\"Disability Inclusion Overview\" href=\"https:\/\/www.worldbank.org\/en\/topic\/disability#1\" target=\"_blank\" rel=\"nofollow noopener\">report on disabilities<\/a> stated that 15% of people experience some form of disability, and an even more significant percentage is living with short-term functional difficulties.<\/p>\n<p>Web Accessibility ensures that these individuals can access your digital service, which<\/p>\n<p>There are legal and economic reasons for the importance of accessibility.<\/p>\n<p><strong>Legal Importance of Web Accessibility<\/strong><\/p>\n<p>Legally, having an inaccessible website increases the chances of you paying a fine or facing legal issues such as lawsuits.<\/p>\n<p>Governments have put laws in place to protect disabled people and ensure that websites adhere to accessibility standards. <a title=\"Section 508 of the Rehabilitation Act of 1973\" href=\"https:\/\/www.section508.gov\/manage\/laws-and-policies\/\" target=\"_blank\" rel=\"nofollow noopener\">Section 508 of the US Rehabilitation Act<\/a> requires that all electronic and information technology developed, maintained, or used by the federal government be accessible to people with disabilities.<\/p>\n<p>A <a title=\"Supreme Court allows blind people to sue retailers if their websites are not accessible\" href=\"https:\/\/www.latimes.com\/politics\/story\/2019-10-07\/blind-person-dominos-ada-supreme-court-disabled\" target=\"_blank\" rel=\"nofollow noopener\">Supreme Court ruling<\/a> allows blind users to sue retailers if their sites are not accessible.<\/p>\n<p>An <a title=\"Complete Report 2021 Website Accessibility Lawsuit Recap\" href=\"https:\/\/www.accessibility.com\/complete-report-2021-website-accessibility-lawsuits\" target=\"_blank\" rel=\"nofollow noopener\">Accessibility<\/a> report states that 2,352 web accessibility lawsuits were filed against U.S businesses in 2021.<\/p>\n<p>With the rise in accessibility-related lawsuits, it is in your best interest to have an accessible website to minimize legal risks.<\/p>\n<p><strong>Economic Importance of Web Accessibility<\/strong><\/p>\n<p>The global disability market is estimated to be nearly $7 trillion.<\/p>\n<p>Economically, failure to cater to the disabled community means ignoring millions of potential customers with billions in purchasing power. The purchasing power of assistive-technology Internet users in the UK is $274 billion (<a title=\"The Purple Pound \u2013 Infographic\" href=\"https:\/\/wearepurple.org.uk\/the-purple-pound-infographic\/\" target=\"_blank\" rel=\"nofollow noopener\">2020 estimate<\/a>).<\/p>\n<figure id=\"attachment_167\" aria-describedby=\"caption-attachment-167\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-167\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/uk.jpeg\" alt=\"An infographic of the purchasing power of disabled people in UK\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/uk.jpeg 1391w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/uk-300x200.jpeg 300w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/uk-1024x682.jpeg 1024w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/uk-768x512.jpeg 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-167\" class=\"wp-caption-text\"><em>An infographic of the purchasing power of disabled people in the UK<\/em><\/figcaption><\/figure>\n<p>A <a title=\"Retailers To Lose $828 Million Of Sales Over Christmas Due To Inaccessible Websites\" href=\"https:\/\/www.forbes.com\/sites\/gusalexiou\/2021\/12\/19\/retailers-to-lose-828-million-of-sales-over-christmas-due-to-inaccessible-websites\/?sh=59e37dab35b5\" target=\"_blank\" rel=\"nofollow noopener\">2021 Forbes article<\/a> estimated that retailers were set to lose $828 Million in Christmas sales due To inaccessible websites.<\/p>\n<p>Web accessibility raises the SEO score of your website, boosting your traffic and visibility on search engines.<\/p>\n<p>Accessibility increases the number of potential customers you attract and the more your business grows.<\/p>\n<p>It is clear that having accessibility compliant websites is essential and beneficial.<\/p>\n<h2>Web Accessibility Principles<\/h2>\n<p>Web accessibility is organized around four core principles called POUR principles. POUR is an acronym that stands for Perceivable, Operable, Understandable, Robust.<\/p>\n<p><strong>Perceivable<\/strong><br \/>\nThe first letter in the POUR acronym stands for Perceivable.<br \/>\nThe information must be presented in a format that users can perceive with their senses. For example, for deaf users or users hard of hearing, videos must have subtitles, and audios must have transcripts.<\/p>\n<p><strong>Operable<\/strong><br \/>\nThe second letter is O, which stands for Operable.<br \/>\nMany users with disabilities cannot use a website with a mouse. A website is operable when users can use various tools to operate them. Examples of these tools are keyboards, voice recognition software, and touchscreen.<\/p>\n<p><strong>Understandable<\/strong><br \/>\nThe third letter, U, stands for Understandable.<br \/>\nAn understandable website is one where both the information on the website and its user interface are clear to all users. Users will find a website with a proper structure and visual layout understandable. Adding charts and graphs where relevant also makes comprehension easier.<\/p>\n<p><strong>Robust<\/strong><br \/>\nThe last letter in the POUR acronym stands for Robust.<br \/>\nA robust website is accessible on multiple devices and platforms, including assistive technologies. Content must remain accessible even as technology and user agents evolve.<\/p>\n<h2>Disabilities and Assistive Technologies<\/h2>\n<p>Assistive technology is any device, software program, equipment, product, or tool people with disabilities use to improve their performance. It promotes participation and inclusion of the elderly or people with disabilities.<\/p>\n<p>There are general-purpose assistive technologies such as wheelchairs, walkers, crutches, prosthetic devices, canes, scooters, spectacles, hearing aids, etc.<\/p>\n<p>Asides from general purpose assistive technologies, there are those for interacting with websites.<\/p>\n<p><strong>Screen Readers<\/strong><br \/>\nScreen readers are software used by blind or visually disabled people to read the content on the computer screen. They enable users to interact with web content in a non-visual manner.<\/p>\n<figure id=\"attachment_169\" aria-describedby=\"caption-attachment-169\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-169\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/sr.png\" alt=\"Screen Readers\" width=\"600\" height=\"191\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/sr.png 600w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/sr-300x96.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-169\" class=\"wp-caption-text\"><em>Screen Readers<\/em><\/figcaption><\/figure>\n<p><strong>Braille<\/strong><br \/>\nBraille is a system of touch reading for blind and visually impaired people. It is a system of raised dots that represent the letters of the alphabet.<\/p>\n<figure id=\"attachment_170\" aria-describedby=\"caption-attachment-170\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-170\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/br.jpeg\" alt=\"Braille\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/br.jpeg 640w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/br-300x200.jpeg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-170\" class=\"wp-caption-text\"><em>Braille<\/em><\/figcaption><\/figure>\n<p><strong>Screen magnification software<\/strong><br \/>\nThese are computer software that enlarges everything on a computer screen. They often come pre-packaged into computer systems.<\/p>\n<p><strong>Alternative input devices<\/strong><br \/>\nSome users may be unable to use a mouse or keyboard to work on a computer. They can use alternative input devices such as Head pointers, motion tracking or eye-tracking devices, single switch entry devices, large-print, and tactile keyboards, and Speech input software.<\/p>\n<figure id=\"attachment_172\" aria-describedby=\"caption-attachment-172\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-172\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/hp.jpg\" alt=\"A head pointer\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/hp.jpg 600w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/hp-300x200.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-172\" class=\"wp-caption-text\"><em>A head pointer<\/em><\/figcaption><\/figure>\n<h3>What exactly are ARIA Labels?<\/h3>\n<p>ARIA stands for Accessible Rich Internet Applications. It is a set of attributes you can add to HTML elements that define ways to make web content and applications more accessible to assistive technologies.<\/p>\n<p>ARIA labels come in when native HTML elements won\u2019t do the job. For example, cases where you need a popup menu or want to create a custom checkbox.<\/p>\n<p>ARIA labels allow you to specify attributes that modify how screen readers translate elements into the accessibility tree.<\/p>\n<p>Take the example of a custom checkbox below:<\/p>\n<pre>\r\n&lt;li tabindex=\"0\" class=\"checkbox\" checked&gt;\r\n  Receive promotional offers\r\n&lt;\/li&gt;\r\n<\/pre>\n<p>While this works well for sighted users, screen readers will be unable to tell that this element is a checkbox.<\/p>\n<p>We can add ARIA attributes to the element to help screen readers identify the element as a checkbox:<\/p>\n<pre>\r\n&lt;li tabindex=\"0\" class=\"checkbox\" role=\"checkbox\" checked aria-checked=\"true\"&gt;\r\n  Receive promotional offers\r\n&lt;\/li&gt;\r\n<\/pre>\n<p>ARIA can modify the semantics of native HTML elements or add semantics to custom elements where no semantics exist.<\/p>\n<p>ARIA only gives more information to screen readers so they can interpret the DOM correctly. They do not change the behavior of elements.<\/p>\n<h3>How to create Accessible Styling<\/h3>\n<p>How you style your websites significantly affects their accessibility. Besides using the proper HTML elements, the CSS styles you apply must also drive the website\u2019s accessibility.<\/p>\n<p>Here are some CSS accessibility tips:<\/p>\n<p>&#8211; Use legible font sizes and font types.<br \/>\n&#8211; Your headings should be bold and distinct from the body text.<br \/>\n&#8211; Your text color should work well with your background color.<br \/>\n&#8211; Create different styles for the hover, focus, and active states of link tags and form elements.<br \/>\n&#8211; Your website should be responsive and scale well when magnified.<br \/>\n&#8211; Always use fluid typography as this enables the user to change the font size to fit their needs.<\/p>\n<p>Let\u2019s see an example of how to style a button in an accessible manner.<\/p>\n<p>First, we define some basic styles for a button.<\/p>\n<pre>\r\nbutton {\r\npadding: 1rem;\r\nwidth: 200px;\r\nfont-size: 1.3rem;\r\nborder-radius: 6px;\r\ncursor: pointer;\r\n}\r\n<\/pre>\n<figure id=\"attachment_174\" aria-describedby=\"caption-attachment-174\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-174\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/na.png\" alt=\"Not accessible button\" width=\"600\" height=\"358\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/na.png 600w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/na-300x179.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-174\" class=\"wp-caption-text\"><em>Not accessible button<\/em><\/figcaption><\/figure>\n<p>While the distinction between the button and the background is clear for sighted users, others will be unable to tell the difference.<\/p>\n<p>We can fix that by changing the value of the button\u2019s `background-color` property to color with better contrast.<\/p>\n<pre>\r\nbutton {\r\npadding: 1rem;\r\nwidth: 200px;\r\nfont-size: 1.3rem;\r\nborder-radius: 6px;\r\nbackground-color: #cc9ef5;\r\ncursor: pointer;\r\n}\r\n<\/pre>\n<figure id=\"attachment_176\" aria-describedby=\"caption-attachment-176\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-176\" src=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/ab.png\" alt=\"Accessible button\" width=\"600\" height=\"324\" srcset=\"https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/ab.png 600w, https:\/\/www.accessi.org\/blog\/wp-content\/uploads\/2022\/04\/ab-300x162.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-176\" class=\"wp-caption-text\"><em>Accessible button<\/em><\/figcaption><\/figure>\n<p>Now we have an accessible button.<\/p>\n<h3>Conclusion<\/h3>\n<p>Web accessibility is an integral aspect of web development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The goal of web accessibility is to create an inclusive web for all users. To achieve this goal, it is essential to consider temporary and permanent motor, cognitive, visual, auditory, speech, and neurological disabilities.<\/p>\n","protected":false},"author":2,"featured_media":201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/posts\/161"}],"collection":[{"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":17,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/233"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.accessi.org\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}