Complete the code to add an ARIA label to the button for screen readers.
<button [1]>Click me</button>The aria-label attribute provides an accessible name for screen readers, describing the button's purpose.
Complete the code to make the image accessible by adding alternative text.
<img src="logo.png" [1]>
The alt attribute provides alternative text for images, which screen readers read aloud.
Fix the error in the form input to ensure it is properly labeled for accessibility.
<label for="email">Email:</label> <input type="email" [1]>
The id attribute on the input must match the for attribute on the label to link them properly for screen readers.
Fill both blanks to create a keyboard-accessible link that opens in a new tab with proper accessibility.
<a href="https://example.com" [1] [2]>Visit site</a>
Use target="_blank" to open the link in a new tab, and rel="noopener noreferrer" for security and accessibility.
Fill all three blanks to create an accessible form input with a label and error message.
<label for="username">[1]</label> <input type="text" id="username" aria-describedby="error-msg" [2]> <span id="error-msg" [3]>Username is required</span>
The label text is 'Username'. The input uses aria-invalid="true" to indicate an error. The error message uses role="alert" to notify screen readers immediately.