Complete the code to add an ARIA label to the button for screen readers.
<button aria-[1]="Close menu">X</button>
The aria-label attribute provides an accessible name for the button, helping screen readers understand its purpose.
Complete the code to make the navigation landmark accessible.
<nav [1]="navigation">...</nav>
The role="navigation" attribute explicitly defines the element as a navigation landmark for assistive technologies.
Fix the error in the button to ensure it is keyboard accessible.
<button [1]="0">Click me</button>
Setting tabindex="0" makes the button focusable by keyboard users, ensuring accessibility.
Fill both blanks to create an accessible form input with a label.
<label for="[1]">Name</label> <input id="[2]" type="text" />
The for attribute in the label must match the id of the input to link them for screen readers.
Fill all three blanks to add ARIA roles and labels for a modal dialog.
<div role="[1]" aria-[2]="[3]"> <h2 id="label">Modal Title</h2> <p>Modal content here.</p> </div>
The role="dialog" defines the modal region. The aria-labelledby="label" attribute points to the element that labels the dialog, improving screen reader context.