What is the correct HTML code for inserting an image ?
1. <img>image.gif</img>
2. <img href=”image.gif/>
3. <img src=”image.gif”>
A. Option 1
B. Option 2
C. Option 3
D. None of the above
Answer: Option C
Solution (By Examveda Team)
The correct HTML code for inserting an image uses theOption 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.
Join The Discussion
Comments (1)
Related Questions on HTML Fonts, Tags and Elements
A. XML
B. SGML
C. ATTLIST
D. None of the mentioned
The ________ declaration specifies which characters and delimiters may appear in the application.
A. DTD
B. SGML
C. XML
D. None of the mentioned
A. Attributes
B. SGML
C. Elements
D. DTD
A. Entity
B. Attribute
C. Comment
D. None of the mentioned

Which of below statement is correct?
a. a.blue, a.green{display:block;}
b. a:blue{display:block;}