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>
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.