{"id":59422,"date":"2023-12-09T09:48:27","date_gmt":"2023-12-09T04:18:27","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=59422"},"modified":"2023-12-11T09:53:04","modified_gmt":"2023-12-11T04:23:04","slug":"guide-to-wcag-compliance","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/guide-to-wcag-compliance\/","title":{"rendered":"Guide to WCAG Compliance"},"content":{"rendered":"<h2><strong>Introduction to WCAG<\/strong><\/h2>\n<p>Web Content Accessibility Guidelines (WCAG) defines how to make Web content more accessible to people with disabilities. These guidelines also make Web content more usable by older individuals, those with low vision, color blindness, and changing abilities due to ageing, and often improve usability for users in general.<\/p>\n<p>WCAG is organized by four main principles: Perceivable, Operable, Understandable, and Robust.<\/p>\n<h2><strong>Web Content Accessibility Guidelines (WCAG) Rules:<\/strong><\/h2>\n<p><strong>STEP-1:<\/strong><\/p>\n<p>Skip to main Content functionality should be implemented, on the click of which focus should land on the first main content element.<\/p>\n<p><strong>STEP-2:<\/strong><\/p>\n<ul>\n<li><strong>Landmark identification<\/strong>: Landmarks should be specified in the code so that the same can be narrated and identified using shortcut keys D\/R<\/li>\n<li><strong style=\"font-size: 1rem;\">Page Titles<\/strong><span style=\"font-size: 1rem;\">: Every page of the Application must have a page-specific title.<\/span><\/li>\n<\/ul>\n<p><strong>STEP-3:<\/strong><\/p>\n<p>Color contrast ratio is the numerical value assigned to the difference in light between the foreground and the background. Minimum luminosity ratio for all colored content should be 4:5 between the foreground color (e.g., text, links, etc.) and the background color.<\/p>\n<ul>\n<li><strong>AA<\/strong>: Text has contrast ratio of at least 4.5:1 for regular sized text(14px) and at least 3:1 for large scale text(at least 18\/24px)<\/li>\n<li><strong style=\"font-size: 1rem;\">AAA<\/strong><span style=\"font-size: 1rem;\">: Text has contrast ratio of at least 7:1 for regular sized text(14px) and at least 4.5:1 for large scale text(at least 18\/24px)<\/span><\/li>\n<\/ul>\n<p>=&gt; Check the color contrast through this tool: Color Contrast Analyzer(CCA).<\/p>\n<p><strong>STEP-4:<\/strong><\/p>\n<ul>\n<li><strong>Responsive<\/strong>: The site should support up to 400% zoom view and should also support layout(1024&#215;1280) changes.<\/li>\n<li><strong style=\"font-size: 1rem;\">Text Spacing<\/strong><span style=\"font-size: 1rem;\">: Content and function retain meaning when users change elements of text spacing.<br \/>\n<\/span><br \/>\nLine height (line spacing) to at least 1.5 times the font size;<br \/>\nSpace the following paragraphs to at least 2 times the font size;<br \/>\nLetter spacing (tracking) to at least 0.12 times the font size;<br \/>\nWord spacing should be at least 0.16 times the font size.<\/li>\n<\/ul>\n<p><strong>Resize Text<\/strong>: Text can be resized to 200% without loss of content or function.<\/p>\n<p><strong>STEP-5:<\/strong><\/p>\n<ul>\n<li><strong>Narration<\/strong>: Name and Value Narration proper labels, titles, and Alt texts for images and IDs must be defined. Consider pagination links at the bottom of the page also. Error message \/Success message\/Alerts\/Warnings ( State )Should be narrated.<\/li>\n<li><strong style=\"font-size: 1rem;\">Keyboard Narration<\/strong><span style=\"font-size: 1rem;\">: Keyboard Navigation (Focus Mode) Every interactive element must be focusable. Any interactive element, e.g., description, should not be focusable. Keyboard navigation should be accessible using shortcut keys like T(go to the table), H(go to heading), F(go to form), K(go to link), etc. Heading Level Navigation: Headings should be in sequential order using focus mode and shortcut key H.<\/span><\/li>\n<li><strong style=\"font-size: 1rem;\">Sequential Navigation Order<\/strong><span style=\"font-size: 1rem;\">: All elements should be accessible using the TAB key in the same order as they appear on the screen. <\/span><span style=\"font-size: 1rem;\">Duplicate ID issue, Generally identified by Accessibility Insights for Web tool. Every legitimate HTML element should have a UNIQUE value for the id attribute. Links should be underlined throughout the application.<\/span><\/li>\n<\/ul>\n<p><strong>STEP-6<\/strong><\/p>\n<ul>\n<li><strong>Form<\/strong>: All mandatory fields should be narrated with Required and state and role narration. The state of interactive controls must be narrated. Example: Expanded, Collapsed, Checked, Unchecked, Unavailable (disabled).<\/li>\n<li><strong>Drop-down lists handling<\/strong> &#8211; All content within the dropdowns (list items\/ menu items) should be accessible using the keyboard.<\/li>\n<\/ul>\n<p><strong>STEP-7<\/strong><\/p>\n<ul>\n<li><strong>Dialog Box handling<\/strong>: When the dialog box opens, the focus should be on the interactive element, and the focus should not leave the dialog box until it is closed. The dialog box should be closed by clicking the Cancel\/Close button and hitting the ESC key anywhere inside the open dialog box. And when the dialog box is closed, the focus should be set from where it was clicked.<\/li>\n<\/ul>\n<p><strong>STEP-8<\/strong><\/p>\n<ul>\n<li><strong>Testing Tools:<\/strong><\/li>\n<\/ul>\n<p>Screen readers (NVDA, JAWS) (Focus and Browse mode)<br \/>\nColour Contrast Analyzer(CCA)<br \/>\nAccessibility Insights for Web(FastPass)<br \/>\nLighthouse<br \/>\nText Spacing<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Introduction to WCAG Web Content Accessibility Guidelines (WCAG) defines how to make Web content more accessible to people with disabilities. These guidelines also make Web content more usable by older individuals, those with low vision, color blindness, and changing abilities due to ageing, and often improve usability for users in general. WCAG is organized by [&hellip;]<\/p>\n","protected":false},"author":1616,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":20},"categories":[3429],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59422"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1616"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=59422"}],"version-history":[{"count":3,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59422\/revisions"}],"predecessor-version":[{"id":59494,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59422\/revisions\/59494"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=59422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=59422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=59422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}