Introduction: Improve your web development skills with these 30 MCQs focused on Accessibility Best Practices in HTML. Learn about WCAG guidelines, ARIA roles and landmarks, and creating accessible forms for better user experience.
role="button" ARIA attribute benefit accessibility?aria-label attribute in HTML?aria-live in web accessibility?for attribute to the label tag that matches the input’s idname attribute to the input tagaria-describedby attribute in form elements?aria-requiredrequiredaria-checkedaria-invalidtype="submit" and a descriptive labeltype="text"aria-live region for dynamic updatestabindex attribute in form elements?| Qno | Answer |
|---|---|
| 1 | a) Web Content Accessibility Guidelines |
| 2 | b) To make websites accessible for all users, including those with disabilities |
| 3 | a) Perceivable |
| 4 | a) Provide text alternatives for non-text content |
| 5 | b) Perceivable |
| 6 | b) It must have a contrast ratio that is easy to read |
| 7 | b) Provide clear and consistent navigation across pages |
| 8 | a) Usability |
| 9 | b) 4.5:1 |
| 10 | b) They ensure content is accessible to all users, including those with disabilities |
| 11 | b) Accessible Rich Internet Applications |
| 12 | c) It enhances web accessibility for users with disabilities |
| 13 | a) To define the function or purpose of an element for accessibility tools |
| 14 | b) role=”navigation” |
| 15 | b) role=”header” |
| 16 | a) To define the layout structure of the page for assistive technologies |
| 17 | b) It helps screen readers identify and interact with buttons |
| 18 | b) role=”footer” |
| 19 | b) It provides a description for screen readers to announce |
| 20 | a) It indicates that content updates need to be announced by screen readers |
| 21 | b) Providing proper labels for all form elements |
| 22 | a) By adding a for attribute to the label tag that matches the input’s id |
| 23 | b) It makes the form easier to fill out for all users, including those with disabilities |
| 24 | b) Provide a clear and descriptive label for each input element |
| 25 | a) To provide additional instructions or explanations for the form element |
| 26 | b) required |
| 27 | b) <fieldset> |
| 28 | a) Use a button with a type="submit" and a descriptive label |
| 29 | a) By using an aria-live region for dynamic updates |
| 30 | a) To define the order of elements when navigating via keyboard |