43.7k views
1 vote
The height property in the code below should be set to which of the following values to ensure that the image remains proportional to its original size? img { width: 500px; height: ?} MCQ Options:

a. 250px
b. 500px
c. auto
d. 100%

1 Answer

3 votes

Final answer:

The correct value to set for the height property to ensure that the image remains proportional to its original size is 'auto'

Step-by-step explanation:

The correct value to set for the height property in order to ensure that the image remains proportional to its original size is auto.

When auto is set as the value for the height property,it allows the browser to automatically adjust the height of the image based on its original aspect ratio. This means that the image will scale proportionally with the specified width without distorting its original dimensions.

User Golak Sarangi
by
8.0k points