Multiple choice technology web technology

What is the correct HTML for inserting an image?

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

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

  3. <img>image.gif</img>

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

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

The tag with src attribute is the correct syntax for images. It is a self-closing element ending with /> in XHTML. is not valid, the path goes in src not href, and does not wrap content.