Multiple choice general knowledge

Which of the following tags would create an image on your website, http://www.myweb.com that is found on another website, http://www.bonzo.com/bonzo.gif that is aligned to the center of the page and has a thin border?

  1. < img src="bonzo.gif" web="http://www.myweb.com" align="center" border="small" >

  2. < img src="http://www.bonzo.com/bonzo.gif" web="http://www.myweb.com" align="center" border="5" >

  3. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="5" >

  4. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="thin" >

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To solve this question, the user needs to know how to insert and format images on a website using HTML.

Now, let's go through each option and explain why it is right or wrong:

A. < img src="bonzo.gif" web="http://www.myweb.com" align="center" border="small" >: This option is incorrect because the src attribute is only indicating the file name, not the full URL of the image. Also, there is no align attribute called "center" and "small" is not a valid value for the border attribute.

B. < img src="http://www.bonzo.com/bonzo.gif" web="http://www.myweb.com" align="center" border="5" >: This option is incorrect because the web attribute is not a valid attribute for the img tag. The correct attribute for specifying the URL of the website is href. Also, the border attribute is an integer value, not a string. "5" is a valid value, but "small" is not.

C. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="5" >: This option is correct. The src attribute is correctly specifying the full URL of the image. The align attribute is specifying that the image should be centered on the page. The border attribute is specifying that the image should have a border of thickness 5.

D. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="thin" >: This option is incorrect because "thin" is not a valid value for the border attribute. The border attribute only accepts integer values.

The Answer is: C