Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<img src="dog.jpg" alt="A dog"> | AA self-closing img with both src and alt inside a figure element - no closing </img> tag needed | |
| 2<figure> <img src="x.jpg" alt="X"> </figure> | B<img src="banner.jpg" alt="Banner"> | |
| 3alt provides a text description for screen readers and when the image cannot load | C<img> is self-closing - it must not have a closing </img> tag | |
| 4src specifies the path or URL of the image file to be displayed | D<img src="logo.png" alt="Company logo"> | |
| 5<img src="cat.jpg"> | EEmbeds dog.jpg - 'A dog' is shown to screen readers or if the image fails to load | |
| 6<img src="dog.jpg" alt="Dog"></img> | FThe alt attribute is missing - every <img> must include alt for accessibility |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
alt — An attribute on <img> that provides a text description of the image, shown when the image fails to load and read aloud by screen readers for accessibility.<img src="photo.jpg" alt="A cat"><img src="logo.png" alt="Logo"><img src="banner.jpg" alt="Banner"><figure>
<img src="cat.jpg" alt="Cat">
</figure><p><img src="icon.png" alt="Icon"></p>