Question:medium

Which HTML tag is used to insert an image?

Show Hint

Always include the `alt` attribute in your `<img>` tags. It is crucial for web accessibility and also helps with search engine optimization (SEO). A correct tag would be `<img src="logo.jpg" alt="Company Logo">`.
Updated On: Jul 2, 2026
  • <img url="htmllogo.jpg" />
  • <img alt="htmllogo.jpg" />
  • <img src="htmllogo.jpg" />
  • <img link="htmllogo.jpg" />
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Recall which HTML tag is used to embed images.
The img tag is the standard, self-closing tag used to place an image on a web page, and it needs the right attribute to know exactly which file to load.
Step 2: Identify the attribute that actually points to the image file.
The mandatory attribute is src, short for source, which holds the path or URL of the image file, while alt only supplies backup text for accessibility and does not load anything by itself.
Step 3: Eliminate the invented attribute names.
Attributes such as url and link are not recognized by the img tag at all, so the only syntactically correct and functional option is the one using src=\"htmllogo.jpg\".
\[ \boxed{\text{<img src=\"htmllogo.jpg\" />}} \]
Was this answer helpful?
0