KnowledgeBoat Logo

Computer Applications

Consider the following code :

<img src ="Computers.jpg" width ="...." height ="....">

Fill in the blanks to set the image size to be 250 pixels wide and 400 pixels tall.

  1. 250, 400
  2. 400, 250
  3. <250><400>
  4. <400><250>

HTML Advanced Features

1 Like

Answer

250, 400

Reason — The 'height' and 'width' attribute of <IMG> tag tell the browser to reserve space before actually downloading an image.

<img src ="Computers.jpg" width ="250" height ="400">

The above command tells the browser to reserve the image place with a width of 250 pixels and a height of 400 pixels.

Answered By

3 Likes


Related Questions