KnowledgeBoat Logo

Computer Applications

What is the general syntax for inline image ?

  1. <src = img>
  2. <src = image>
  3. <img = file>
  4. <img src = file>
  5. <image src = file>

HTML Advanced Features

1 Like

Answer

<img src = file>

Reason — The <img> tag is used to insert images in HTML, and the "src" attribute is used to specify the path or URL of the image file. Therefore, the correct syntax for an inline image is:

<img src = file>

Answered By

2 Likes


Related Questions