Complete the code to add a descriptive label for the image for screen readers.
<img src="logo.png" alt="[1]">
The alt attribute provides a text description of the image for screen readers. Using a clear description like "Company logo" helps users who cannot see the image understand its purpose.
Complete the code to make the button accessible by adding an ARIA label.
<button aria-label="[1]">🔍</button>
The aria-label attribute gives a clear description of the button's purpose to screen readers. Using "search" tells users what the button does.
Fix the error in the heading to improve accessibility by using the correct semantic tag.
<[1]>Welcome to our website</[1]>
div or span instead of heading tags.Using a heading tag like <h1> helps screen readers and search engines understand the page structure. Avoid using generic tags like div or span for headings.
Fill both blanks to create a navigation menu with accessible links.
<nav aria-label="[1]"> <ul> <li><a href="home.html" [2]>Home</a></li> </ul> </nav>
aria-hidden which hides content from screen readers.role="button" on links which confuses assistive tech.The aria-label describes the navigation region for screen readers. Adding tabindex="0" to the link ensures it is keyboard accessible.
Fill all three blanks to create a form input with a label and accessible error message.
<label for="email">[1]</label> <input type="email" id="email" name="email" aria-describedby="[2]"> <span id="[3]" role="alert">Please enter a valid email.</span>
aria-describedby and error message.role="alert" on error messages.The label clearly describes the input. The aria-describedby links the input to the error message by ID. The error message uses role="alert" to notify screen readers immediately.