101k views
4 votes
Look at the code in the example below, and then answer the question.

< body >
< img src = " mydog.jpg " alt = " My dog " title = " My very smart dog" / >
< / body >

In the example code, what does the src attribute do?

A. contains the alternate text the browser will display if it can’t find the image
B. tells the browser where the image to be displayed is located
C. adds a hypertext reference
D. creates a tool tip for the title of the image

2 Answers

2 votes

Answer:

The best Src attribute is B (tells the browser where the image to be displayed is located)

The required src characteristic indicates the URL of the picture. Note: When a site page loads; it is the program, right then and there, that gets the picture from a web server and supplements it into the page.

User Shawntell
by
6.1k points
2 votes
It's B. Tells the browser where the image displayed is located.

Good luck!
User Hackerman
by
6.7k points