Q41
What is the correct HTML code for inserting an image ? 1. image.gif 2. 3.
A.
Option 1
B.
Option 2
C.
Option 3
AnswerD.
None of the above
Answer: Option C
Solution
Answer: Option C
Solution:
The correct HTML code for inserting an image uses the Option 1: <img>image.gif</img> - This is incorrect. The
Option 2: <img href=”image.gif”/> - This is incorrect. The href attribute is used for links, not images.
Option 3: <img src=”image.gif”> - This is the correct answer. The src attribute specifies the path to the image.
Option D: None of the above - This is incorrect because Option 3 correctly lists the HTML code for inserting an image.