πŸ“Š HTML
Q. Which of the attributes is mandatory in the <img> tag?
  • (A) src
  • (B) href
  • (C) id
  • (D) alt
πŸ’¬ Discuss
βœ… Correct Answer: (A) src

Explanation: The <img> element is defined with the required attribute src, which contains a URL pointing to the location of the image. Example :
<img src="../../images/test.jpg">

Explanation by: Tina Singh
The <img> element is defined with the required attribute src, which contains a URL pointing to the location of the image. Example :
<img src="../../images/test.jpg">

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
214
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tina Singh
Publisher
πŸ“ˆ
90%
Success Rate