Multiple choice technology web technology

What is the correct HTML for inserting an image?

  1. <img>image.gif</img>

  2. <image src="image.gif" />

  3. <img src="image.gif" />

  4. <img href="image.gif />

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Images in HTML are inserted using the self-closing img tag with the src attribute specifying the image path. Option A incorrectly uses closing tags, option B uses the non-existent tag, and option D uses 'href' instead of 'src'. Only option C uses the correct img tag syntax.