Complete the code to add an image with the source 'flower.jpg'.
<img src="[1]" alt="A flower">
The src attribute specifies the image file. Here, it should be 'flower.jpg' to match the file name.
Complete the code to add alternative text describing the image as 'Sunset view'.
<img src="sunset.jpg" alt="[1]">
The alt attribute should describe the image clearly. 'Sunset view' matches the instruction exactly.
Fix the error in the image tag by completing the missing attribute name.
<img [1]="logo.png" alt="Company logo">
The src attribute is required to specify the image source. 'href' is for links, 'alt' is for alternative text, and 'title' shows a tooltip.
Fill both blanks to create an image tag with source 'cat.png' and alternative text 'Cute cat'.
<img [1]="[2]" alt="Cute cat">
The src attribute sets the image file, and the value should be 'cat.png'. The alt text is already correct.
Fill all three blanks to create an image tag with source 'dog.jpg', alternative text 'Happy dog', and a width of 300 pixels.
<img [1]="[2]" alt="[3]" width="300">
The src attribute points to 'dog.jpg', the alt attribute describes the image as 'Happy dog', and the width is set to 300 pixels.