Complete the code to add an image with the correct source attribute.
<img src="[1]" alt="A beautiful sunrise">
The src attribute specifies the path to the image file. Here, sunrise.jpg is the correct source.
Complete the code to add a meaningful alt text for the image.
<img src="flower.png" alt="[1]">
The alt attribute provides descriptive text for the image, which helps screen readers and shows if the image cannot load. Here, A red flower in bloom is a meaningful description.
Fix the error in the image tag by completing the missing attribute.
<img [1]="logo.png" alt="Company logo">
The src attribute is required to specify the image source. Without it, the image won't display.
Fill both blanks to create an image tag with a source and alt text.
<img [1]="cat.jpg" [2]="A cute cat sitting">
The src attribute sets the image file path, and the alt attribute provides descriptive text for accessibility.
Fill all three blanks to create an image tag with source, alt text, and a title attribute.
<img [1]="dog.png" [2]="A happy dog" [3]="Dog photo">
The src attribute sets the image file, alt provides descriptive text for accessibility, and title shows a tooltip on hover.