What will be the output of the following HTML code snippet? <IMG…

2022

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

  1. A.

    The image flower.jpg will be displayed with 100 pixel height, 40 pixel width and a border with RGB code 10. flower.jpg

  2. B.

    The image flower.jpg will be displayed as a 100 px by 40 px image with a 10 px thick border. flower.jpg

  3. C.

    The image flower.jpg will be displayed as a 40 cm by 100 cm image with a 10 cm thick border. flower.jpg

  4. D.

    The image flower.jpg will be displayed as a 100 mm by 40 mm image with a 10 mm thick border. flower.jpg

Attempted by 328 students.

Show answer & explanation

Correct answer: B

Output: The image "FLOWER.JPG" will be displayed as a 100 px (height) by 40 px (width) image with a 10 px thick border. HEIGHT="100" sets the image height to 100 pixels. HEIGHT="100" इमेज की ऊँचाई 100 पिक्सेल निर्धारित करता है।

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Up Lt Grade Assistant Teacher 2025