Question:

Which attribute of the <img> tag is used to specify the path of the image to be displayed?

Show Hint

Think of the full form of src. Which word means where the image comes from?
Updated On: Nov 3, 2026
  • href
  • src
  • link
  • source
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Question:
The <img> tag shows a picture. The browser must be told where the picture file is stored, and that location is given by an attribute.

Step 2: Key Concept:
The src attribute (short for source) holds the path or URL of the image. Example: <img src="flower.jpg">.

Step 3: Check option A (href):
href is used with the anchor tag <a> to give the address of a link. It is not used with images. So A is FALSE.

Step 4: Check option B (src):
src is the correct attribute for the image path. So B is TRUE.

Step 5: Check option C (link):
There is no link attribute for the <img> tag. (The link attribute belongs to the <body> tag and sets the colour of links.) So C is FALSE.

Step 6: Check option D (source):
source is not a valid HTML attribute name for images. The short form src must be used. So D is FALSE.

Final Answer:
The src attribute gives the image path, so the correct option is B. \[ \boxed{\text{B. src}} \]
Was this answer helpful?
0
0

Top CBSE X Questions

View More Questions