FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the following piece of html code going to do? <img src="candy.jpg”
A
Inserts a hyperlink to a candy website
B
Inserts a picture of candy
C
Inserts a reference to candy
D
Inserts a candy source
Explanation: 

Detailed explanation-1: -The <img> tag is used to embed an image in an HTML page.

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: -To display an image, use the <img> tag with the src attribute the way you’d use the href attribute in an <a> tag.

Detailed explanation-4: -How do we put an image on a webpage? In order to put a simple image on a web page, we use the <img> element. This is a void element (meaning, it cannot have any child content and cannot have an end tag) that requires two attributes to be useful: src and alt .

There is 1 question to complete.