CBSE Class 10 Computer Applications Question 38 of 125

HTML II — Images, Links and Tables — Question 29

Back to all questions
29
Question

Question 29

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>
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>