Developing ASP.NET MVC Web Applications — Question 2
You are designing an HTML5 website.
You need to design the interface such that the content is viewable in all types of browsers, including screen readers.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
Answer options
- A. Ensure that content elements have valid and descriptive names.
- B. Use Resource Description Framework (RDF) to describe content elements.
- C. Convert HTML forms to XForms.
- D. Use HTML5 semantic markup elements.
- E. Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.
Correct answer: D, E
Explanation
Using HTML5 semantic markup elements (D) helps improve accessibility by providing meaning and context to the content, which is crucial for screen readers. Annotating content with ARIA attributes (E) further enhances accessibility by defining roles and properties for elements, making them more understandable for assistive technologies. The other options, while potentially useful, do not directly address the fundamental accessibility requirements as effectively as D and E.