Skip to content
doubtly
Chapter: Practice Questions· ComputerApplications

Consider the following code:   <img src = " computers jpg" width = " -------- "height = " ------">

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.

a. 250, 400

b.400, 250

c. <250><400>

d. <400><250>

Doubtly Asked Updated Student doubt Save WhatsApp Report

2 answers

Answer: a. 250, 400

The width attribute sets how wide the image is and height sets how tall it is, in pixels by default. For an image 250 pixels wide and 400 pixels tall:

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

Option (b) swaps the values, and options (c) and (d) are wrong because attribute values are written inside quotes, not inside angle brackets. (The file name should be written as computers.jpg, with a dot.)

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Practise this chapter

Practice Questions

Your answer

Log in or create a free account to answer this question.