Advertisements
Advertisements
Question
The following HTML statement is not written properly. Re-write the correct statement with underlined correction. The desired purpose of the statement is mentioned under it.
<img source="img_girl.jpg" size="500" height="600">
<!--Image source should be img_girl.jpg, width and
height both should be 500-->Code Writing
Advertisements
Solution

Corrections Made:
- The incorrect attribute
sourcewas replaced with the correct attributesrcto specify the image file. - The incorrect attribute
sizewas replaced withwidthto set the image's width. - The height was changed from
600to500to meet the requirement that both width and height should be 500.
shaalaa.com
Is there an error in this question or solution?
