18.
Which of the following options correctly adds an alternate text for the image in the example below?
<img src="example.jpg" />
<img src="example.jpg">
<img src="example.jpg" alternate=" ">
<img src="example.jpg" caption="Image description">
<img src="example.jpg" alt="Image description">
Correct: D
The alternate text for an image is added using the alt attribute. It should provide a concise description of the image. In the given options, <img src="example.jpg" alt="Image description"> correctly add the alternate text by specifying the alt attribute with the desired text.