Advertisements
Advertisements
Question
The correct HTML code for inserting an image is ______.
Options
<img href ="image.gif”>
<img> image.gif</gif>
<image src = “image.gif”>
<img src = “image.gif”>
MCQ
Fill in the Blanks
Advertisements
Solution
The correct HTML code for inserting an image is <img src = “image.gif”>.
Explanation:
The <IMG> tag is used to insert an image in a web page. The src attribute gives the name or location of the image file.
shaalaa.com
Is there an error in this question or solution?
