COMPUTER FUNDAMENTALS

COMPUTER NETWORKS AND COMMUNICATIONS

INTERNET AND WEB TECHNOLOGIES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which tag would correctly display an image called logo.jpeg?
A
<image = logo.jpeg/>
B
<img = logo.jpeg/>
C
<href = “logo.jpeg/>
D
<img src = “logo.jpeg"/>
Explanation: 

Detailed explanation-1: -The <img> tag is used to insert an image into a document.

Detailed explanation-2: -The HTML <img> tag is used to embed an image in a web page. Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for the referenced image. The <img> tag is empty, it contains attributes only, and does not have a closing tag.

Detailed explanation-3: -The <IMG> tag is used to incorporate in-line graphics (typically icons or small graphics) into an HTML document.

Detailed explanation-4: -Access the HTML file where you want to insert the image, and add the img tag. Include the img src attribute to define the source of the image.

There is 1 question to complete.