Which of the following statements about <img> tag is NOT correct?
2022
Which of the following statements about <img> tag is NOT correct?
- A.
The <img> tag may contain the width attribute.
- B.
The <img> tag may contain the height attribute.
- C.
The <img> tag may contain both width and height attributes.
- D.
The <img> tag cannot contain either width attribute or height attribute.
Attempted by 150 students.
Show answer & explanation
Correct answer: D
The question asks for the incorrect statement about HTML <img> tags. Width and height are valid attributes used for image sizing in standard markup. Therefore, the claim that these cannot be used is false and corresponds to option 3.