Which HTML tag is used to insert an image?
Correct answer
A. <img>
11 views
A. <img>
11 views
<img> inserts an image. It is an empty element that needs src for the file path and alt for alternative text: <img src="logo.png" alt="Logo">.
src is an attribute, and <image> and <pic> are not valid tags.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Asked in: Matric,FBISE
Not sure why the answer is A? Ask here and get an explanation.