Question 80

What will be the output of the following HTML code snippet? <IMG SRC = "FLOWER.JPG" HEIGHT = 100 WIDTH = 40 BORDER = 10>

What will be the output of the following HTML code snippet? <IMG SRC = "FLOWER.JPG" HEIGHT = 100 WIDTH = 40 BORDER = 10>
  1. AThe image flower.jpg will be displayed with 100 pixel height 40 pixel width and a border with RGB code as 10
  2. BThe image flower.jpg will be displayed as a 100 px by 40px image with a 10px thick border
  3. CThe image flower.jpg will be displayed as a 40 cm by 100 cm image with a 10 cm thick border
  4. DThe image flower.jpg will be displayed as a 100 mm by 40 mm image with a 10 mm thick border
Show answerHide answer

Correct answer: (B) The image flower.jpg will be displayed as a 100 px by 40px image with a 10px thick border

Explanation

In HTML, HEIGHT, WIDTH and BORDER values are in pixels, so the image appears 100 px high and 40 px wide with a 10 px border.

From DSSSB TGT Computer Science Practice Set 5

This is question 80 of DSSSB TGT Computer Science Practice Set 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.